springboot中配置文件使用2

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

1.使用註解@Value獲取配置文件的值spa

 

 注意:上述中的複雜數據封裝指:有map等數據,@Value不支持。3d

 

 

 

 

相關文章
相關標籤/搜索