org.mybatis.spring.mapper.MapperScannerConfigurer
早于配置文件的载入
context:property-placeholder
解决方式:http://code.google.com/p/mybatis/issues/detail?id=414
或直接手写数据源;
<bean name="ScannerConfigurer" class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="sqlSessionFactory" ref="sqlSessionFactory"/>
<property name="basePackage" value="com.*" />
<property name="annotationClass" value="com.*.MyBatisRepository"/>
</bean>
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd "
<util:properties id="configProperties" location="classpath:config.properties" />
#{configProperties[' *** ']}