三、项目属性配置
1.@Value
修改application.properties配置文件为application.yml
在其中填写
可通过@Value来获取值
2.@Component和@ConfigurationProperties
四、Controller的使用
1.Controller
2.@RequestMapping和RestController
三、项目属性配置
1.@Value
修改application.properties配置文件为application.yml
在其中填写
可通过@Value来获取值
2.@Component和@ConfigurationProperties
四、Controller的使用
1.Controller
2.@RequestMapping和RestController