摘要: 一、使用 @Value("${name}")注解可以获取自定义的properties文件中的name值 二、配置 如果只是在applicationcontext.xml中配置,那么在service中获取,没有任何问题,但是在controller中是获取取到值的,如果想获取到值,需要在spring-s 阅读全文
posted @ 2018-04-30 13:14 npe0 阅读(3295) 评论(0) 推荐(0)