求问个spring配置数据源的错误 <context:property-placeholder location=“jdbc.properties”/> 应该这样写吧!我是这样写的!就可以搜寻到配置文件! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 属性错了把<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations" value="classpath:jdbc.properties"/> </bean>改成下面的试试:<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>classpath:jdbc.properties</value> </list> </property> </bean> 读取单个文件的时候用location 多个文件的说话用locations 下面要用list 遇到一个奇怪的问题,访问带上工程名时路径问题 正则表达式问题 表单提交时中文乱码 关于JAVA远程获取XML的UTF-8中文乱码的问题!! 当我进linux之后黑屏 [java混淆器问题] 如何让web项目的class文件不能被反编译,又能在web中正常调用? STRUCTS 里面checkbox问题!!急啊 谁有jexcelapi包的,给偶发一个 关于jsp的运行,在线等待啊!!急!!!! springboot+openoffice 实现在线预览,怎么禁用预览页面的下载和打印按钮? 小白提问ssh sping相关问题 java工程下有个文件读取路径怎么写
把
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations" value="classpath:jdbc.properties"/>
</bean>
改成下面的试试:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>
</list>
</property>
</bean>