(1) spring-boot-starter-web:springboot web开发核心包. (2) spring-boot-starter-actuator:健康检查,很多性能监控的组件都是依赖此包开发. (3) spring-boot-configuration-processor:配置文件依赖,方便我们做实体类和配置文件的映射.
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> </dependency> </dependencies>启动成功并且application.yml中的配置生效.
源码地址:https://gitee.com/chouchimoo/ccm-mall.git(本章节代码分支:zj-6)
您的点赞、收藏、转发和关注是我持续创作的动力!