java.lang.NoSuchMethodError:org.springframework.jdbc.datasource.DataSourceTransactionManager.determineTimeout

时间:2019-05-31 09:27:13

标签: spring hibernate

org.springframework.transaction.CannotCreateTransactionException :无法为事务打开JDBC连接;嵌套异常为java.lang.NoSuchMethodError:org.springframework.jdbc.datasource.DataSourceTransactionManager.determineTimeout(Lorg / springframework / transaction / TransactionDefinition;)       在... 由以下原因引起: java.lang.NoSuchMethodError:org.springframework.jdbc.datasource.DataSourceTransactionManager.determineTimeout (Lorg / springframework / transaction / TransactionDefinition;)     在org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:289)     ...还有55个

我尝试在org.springframework.jdbc.datasource包中找到此方法,并在“ int timeout = defineTimeout(definition);”中找到了方法defineTimeout。不存在。

maven dependency
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <lombok.version>1.18.8</lombok.version>
        <spring.version>5.1.7.RELEASE</spring.version>
        <junit.version>5.4.2</junit.version>
        <commons-logging.version>1.2</commons-logging.version>
        <jdbc-mysql.version>8.0.16</jdbc-mysql.version>
        <inject.version>1</inject.version>
        <hibernate.version>5.4.2.Final</hibernate.version>
        <commons.version>2.6.0</commons.version>
    </properties>

0 个答案:

没有答案