springboot中配置文件使用2

本文章接上一篇文章:http://www.javashuo.com/article/p-bctpzbgw-ev.htmlhtml

1.使用注解@Value获取配置文件的值spa

 

 注意:上述中的复杂数据封装指:有map等数据,@Value不支持。3d

 

 

 

 

相关文章
相关标签/搜索