spring+mybatis使用MapperScannerConfigurer引发的PropertyPlaceholderConfigurer无效问题处理方法

问题描述:     在spring里使用org.mybatis.spring.mapper.MapperScannerConfigurer 进行自动扫描的时候,设置了sqlSessionFactory 的话,他会优先于PropertyPlaceholderConfigurer执行,从而致使PropertyPlaceholderConfigurer失效,这时在xml中用${url}、${userna
相关文章
相关标签/搜索