SpringBoot
Gabriel8304
这个作者很懒,什么都没留下…
展开
-
springboot 启动类Application 扫盲(继承SpringBootServletInitializer作用)
1. springboot最基本的启动类模样@MapperScan("xxxx.mapper")@SpringBootApplication@EnableCachingpublic class WebdemoApplication { public static void main(String[] args) { SpringApplication.run(Webd...转载 2020-03-27 14:00:17 · 2480 阅读 · 0 评论 -
关于 @EnableConfigurationProperties 注解
先说作用:@EnableConfigurationProperties注解的作用是:使使用 @ConfigurationProperties 注解的类生效。说明:用springboot开发的过程中,我们会用到@ConfigurationProperties注解,主要是用来把properties或者yml配置文件转化为bean来使用的,而@EnableConfigurationPrope...转载 2019-09-06 11:06:05 · 3408 阅读 · 0 评论