SpringBoot核心注解

用过springboot的人都知道。它的核心注解@SpringBootApplication以及run方法。那springboot为什么不需要配置xml。可以说是零配置。 首先我们来看看主启动类: 我们进入@SpringBootApplication:。 这里我们重点看@SpringBootConfiguration ,@EnableAutoConfiguration,@ComponentScan
相关文章
相关标签/搜索