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