摘要: Starters 可以创建自己的Starter,但名字格式不能是 spring-boot-starter-*,而是 *-spring-boot-starter。类似Maven插件的规则。 自动配置 @Import 和 @ComponentScan 类似; @EnableAutoConfigurati 阅读全文
posted @ 2017-01-25 16:46 张建斌 阅读(785) 评论(0) 推荐(0) 编辑
摘要: ① 新建一个maven项目。 ② pom中parent设为 spring-boot-starter-parent 。建议使用最新的 RELEASE 版本。否则可能需要设置 <repositories/> 和<pluginRepositories/> 。 ③ 添加应用需要的starter模块,作为示例 阅读全文
posted @ 2017-01-25 15:17 张建斌 阅读(2334) 评论(0) 推荐(0) 编辑
摘要: Spring Boot的启动器Starter详解 spring Boot应用启动器基本的一共有44种,具体如下: 1)spring-boot-starter 这是Spring Boot的核心启动器,包含了自动配置、日志和YAML。 2)spring-boot-starter-actuator 帮助监 阅读全文
posted @ 2017-01-25 14:54 张建斌 阅读(1319) 评论(0) 推荐(0) 编辑