202110-12 Spring注解@Value及属性加载配置文件方式 Spring中使用@Value注解给bean加载属性的配置文件有两种使用方式第一种:使用@Value("#{configProperties['websit.msgname']}")spring中配置属性加载文件的配置方式<beanid="configProperties"class="org.springframework.beans.factory.config.PropertiesFactoryBean"><propertyname="locations"><list><value>classpath:/properties/websit.properties</value></list>... 继续阅读 >