摘要: @Resource private Environment environment; environment.getProperty("key") 就可以取到application.properties中的配置了: 如下图,在application.properties中配置了debug属性: Sy 阅读全文
posted @ 2022-08-31 17:29 xudong5273 阅读(254) 评论(0) 推荐(0) 编辑