2020年4月19日
摘要: spring boot应用程序获取配置文件的配置信息的方法: 1.通过@Value注释获取 2.通过Environment类获取 3.通过@ConfigurationProperties获取 application.properties文件内容: 1 server.port=8080 2 3 4 s 阅读全文
posted @ 2020-04-19 01:30 pcant 阅读(1010) 评论(0) 推荐(0) 编辑