今天在整合JdbcTemplate与RedisTemplate的时候,分别配置了spring-db.xml和spring-redis.xml 使用spring-mvc.xml import包含进来,正常启动工程没有问题,但是使用junit做测试的时候 启动报错,后来找到原因 参见[here] http://blog.csdn.net/yiluoak_47/article/details/12980781 <context:property-placeholder location="xxx.properties" ignore-unresolvable="true" /> 在使用多个配置文件并同时使用多个properites的时候,需要设置ignore-unresolvable="true" 在此记录
JdbcTemplate 与RedisTemplate整合
猜你喜欢
转载自jis117.iteye.com/blog/2227151
今日推荐
周排行