Commit 6486ac39 by 王仕雄

112

1 parent cd566a0b
...@@ -6,7 +6,9 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; ...@@ -6,7 +6,9 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableAutoConfiguration(exclude = { @EnableAutoConfiguration(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
...@@ -26,4 +28,12 @@ public class BootdoApplication { ...@@ -26,4 +28,12 @@ public class BootdoApplication {
System.out.println("启动咯,wangsx9999"); System.out.println("启动咯,wangsx9999");
System.out.println("启动咯,我是105添加的哦"); System.out.println("启动咯,我是105添加的哦");
} }
@Bean
public Object testBean(PlatformTransactionManager platformTransactionManager){
System.out.println(">>>>>>>>>>" + platformTransactionManager.getClass().getName());
System.out.println("111");
return new Object();
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!