1

我正在将 grails 应用程序从 2.x 升级到 3.3.9。我遇到了我不理解的堆栈跟踪 UnSatisfiedDependencyException。堆栈跟踪如下。有趣的是在它所说的堆栈跟踪消息的末尾 - 无法确定表中 ....PlatformTransactionManager 的类型 - “表名”,列 - “transaction_manager”。表中没有该名称的列,也没有在域对象中定义。

Exception encountered during context initialization - cancelling 
refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: 
Unsatisfied dependency expressed through method 'methodValidationPostProcessor' parameter 0; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'hibernateDatastoreServiceRegistry': Cannot resolve reference to bean 'hibernateDatastore' while setting constructor argument; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: 
Constructor threw exception; nested exception is org.hibernate.MappingException:  

Could not determine type for: org.springframework.transaction.PlatformTransactionManager, at table: TABLE_A, for columns: [org.hibernate.mapping.Column(transaction_manager)]
4

0 回答 0