Spring Boot快速入门---(二)spring boot的项目属性配置及Controller的使用
三、项目属性配置
修改application.properties配置文件为application.yml
在其中填写
可通过@Value来获取值
[email protected]和@ConfigurationProperties
四、Controller的使用
1.Controller
[email protected]和RestController