摘要: Spring Boot获取文件总的来说有三种方式,分别是@Value注解,@ConfigurationProperties注解和Environment接口。这三种注解可以配合着@PropertySource来使用,@PropertySource主要是用来指定具体的配置文件。 @PropertySou 阅读全文
posted @ 2020-07-08 08:39 Java旅途 阅读(6599) 评论(0) 推荐(0) 编辑