可能是有两个配置文件,spring-mvc.xml 没有配置,导致controller使用@Value取到的值是()里面的值。加下面的配置。s
<context:property-placeholder location=“classpath:jdbc.properties”/>
可能是有两个配置文件,spring-mvc.xml 没有配置,导致controller使用@Value取到的值是()里面的值。加下面的配置。s
<context:property-placeholder location=“classpath:jdbc.properties”/>