我最近遇到了一些我尚未解决的弹簧数据休息问题.经过仔细研究后,我发现xml警告已关闭,当我将它们切换为显示的两个警告时:
Multiple annotations found at this line:
- Referenced bean 'jpaMappingContext' not found [config set: test/test]
- Class 'org.springframework.orm.jpa.SharedEntityManagerCreator' is abstract [config set: test/
test]
这是我的spring-data-rest.xml,警告显示在行< jpa:repositories base-package =“com.test”/>
spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.1.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.2.xsd">
fig.RepositoryRestMvcConfiguration"/>
fig.HateoasAwareSpringDataWebConfiguration" />
factorybean">
vendorAdapter">
vendor.HibernateJpavendorAdapter" />
sqlDialectsql">truesql">true
我搜索了两个警告,但没有运气.我猜我要么需要添加一些bean来配置,要么我缺少一些依赖项.我也搜索了jpaMappingContext bean,但没有找到任何有价值的东西.
我的spring,hibernate,json和postgre依赖关系如下.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。