动态数据源切换错误
<bean id="dynamicDataSource" class="com.aisino.web.util.DynamicDataSource">
<!-- 通过key-value的形式来关联数据源 -->
<property name="targetDataSources">
<map key-type="java.lang.String">
<entry value-ref="cjdataSource" key="cjdataSource"></entry>
<entry value-ref="dataSource51" key="dataSource51"></entry>
</map>
</property>
<property name="defaultTargetDataSource" ref="cjdataSource">
</property>
</bean>
默认数据源配成cjdataSource可以实现正常切换,当换成dataSource51时不能实现动态切换时为什么呢 求解