2020
10-08
10-08
SpringBoot Application注解原理及代码详解
1、SpringBoot启动main()@SpringBootApplicationpublicclassTomcatdebugApplication{publicstaticvoidmain(String[]args){SpringApplication.run(TomcatdebugApplication.class,args);}}1.1@SpringBootApplication注解,其实主要是@ComponentScan,@EnableAutoConfiguration,@SpringBootConfiguration三个注解@ComponentScan注解:spring里有四大注解:@Service,@Repository,@Component,@Controller用来定义一...
继续阅读 >