主题:奇技淫巧Spring--属性格式的配置文件
时间: 2020-08-27来源:ITEYE
前景提要
求人不如求己,暴力方法解决,你不是要resource吗?我给你个FileSystemResource.什么?没setPath()?继续暴力,给构造参数........ <!--about config--> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"><ref bean="configResource"/></property> </bean> <bean id="configResource" class="org.springframework.core.io.FileSystemResource" singleton="false"> <constructor-arg type="java.lang.String"><value>conf/jdbc.properties</value></constructor-arg> </bean>

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行