现在,当我在控制台应用程序中使用这两个层的库时,我得到了一个错误,即JpaTransactionManager需要entityManagerFactory,这很奇怪,因为它没有在我的web应用程序中抛出异常Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'entityManagerFactoryInvocation of init method failed; nested exception is
我还试图将其中一个数据源转换为H2。我还是会犯同样的错误。refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactorystartup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityMana
xaDataSource.setUniqueResourceName("datasource1"); }
@Bean(name = "entityManagerFactory1] is defined: expected single matching bean but found 2: osm.entityManagerFactory,entityManagerFactory] is defined: expected single matching