spirng通過@value獲取配置文件的值

一:在配置文件aplicationContext-service添加:   < context:property-placeholder location = "classpath:path.properties" ignore-unresolvable = "true" file-encoding = "UTF-8" />   二:編寫配置文件       三:註解獲取配置文件的值 @Value
相關文章
相關標籤/搜索