error: DynamicDataSource is not abstract and does not override abstract method getParentLogger() in

Spring 多数据源路由问题

在开发环境正常。在测试环境打包报错

[ERROR] /root/update/test/xxx/DynamicDataSource.java:[7,7] error: DynamicDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource

开发环境:(JVM 信息如下)

java version "1.7.0_45"

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)


测试环境:(JVM 信息如下)

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)


解决方案 

将Spring版本升级即可

当前使用版本:3.0.5.RELEASE  升级到:3.1.1.RELEASE


你可能感兴趣的:(spring)