史上最全 SpringBoot 注解详解

上传:Y_Y_L 浏览: 29 推荐: 0 文件:PDF 大小:84.12KB 上传时间:2020-12-22 22:56:20 版权申诉
一、注解(annotations)列表 1、@SpringBootApplication 包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。 其中@ComponentScan让Spring Boot扫描到Configuration类并把它加入到程序上下文。 2、@ComponentScan 组件扫描,可自动发现和装配一些Bean。 3、@Configuration 等同于Spring的XML配置文件;使用Java代码可以检查类型安全。 4、@EnableAutoConfiguration 自动配置 5、@RestContro
上传资源
用户评论