org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-database.xml]:
Invocation of init method failed; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getJDBCMajorVersion()I
Caused by: java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.getJDBCMajorVersion()I
<property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
更改jtds连接:
本文解决了一个在使用微软数据库驱动时出现的SessionFactory初始化失败的问题。通过更换为jtds驱动并调整Hibernate配置,成功解决了AbstractMethodError异常。
1011

被折叠的 条评论
为什么被折叠?



