错误表现:
在<jpa:repositories base-package="cn.edu" entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager" />
处提示 - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jpa:repositories'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/data/jpa/spring-jpa.xsd', because 1) could not find the document; 2) the document could not be
read; 3) the root element of the document is not <xsd:schema>.
解决方案:
将
http://www.springframework.org/schema/data/jpa
http: //www.springframework.org/schema/data/jpa/spring-jpa.xsd
替换为
http: //www.springframework.org/schemadata/jpa
http://www.springframework.org /schema/data/jpa/spring-jpa-1.0.xsd
即可。
相关推荐
主要介绍了Spring集成JPA配置懒加载报错解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
spring springmvc jpa配置文件 内容详细简单易懂 可直接使用
Spring JPA 配置类包集合 方便大家使用
Spring Data JPA API。 Spring Data JPA 开发文档。 官网 Spring Data JPA API。
Spring Boot使用spring-data-jpa配置Mysql多数据源,可用版本
很简单的,只是搭建了平台,可以作为blank使用
具有详细的SpringDataJPA配置及文档说明,让你更快的理解SpringDataJPA持久层方案
Spring Data JPA中文文档1.4.3
Spring Boot+Jpa多数据源配置Demo,可同时支持多种数据库,不同数据库,同时支持不同数据库的JdbcTemplate
spring+springMVC+spring-data-jpa+freemarket/json
SpringMVC+Spring+JPA+Maven的框架搭建的详细说明文档。具体包括项目整体结构,及如何使用Maven构建
maven+springmvc+springjpa+hibernate简单例子,有需要的朋友可以参考看看,没费的哦。
赠送Maven依赖信息文件:spring-data-jpa-2.0.9.RELEASE.pom; 包含翻译后的API文档:spring-data-jpa-2.0.9.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework.data:spring-data-jpa:...
spring注解完整版+spring data jpa官方文档中文翻译+JPA2.0官方文档 文档内容齐全 值得参考学习
spring3.0 + jpa 需要的jar包 spring3.0 + jpa 需要的jar包 spring3.0 + jpa 需要的jar包
采用hibernate 4.3.6,spring 4.0.6 ,实现jpa配置,简单易懂明了。压缩文件中包含jpa依赖的hibernate包,如果下载者希望运行,需要自己写实体类。压缩包中含有精简的配置。
Struts2+Spring+JPA(Hibernate)项目所需要的jar包
spring mvc spring jpa集成 mysql
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
内容包括整体认识JPA、JPA基础查询方法、定义查询方法、注解式查询方法、@Entity实例里面常用注解详解、JpaRepository扩展详解、JPA的MVC扩展REST支持、DataSource的配置、乐观锁、SpEL表达式在SpringData里面的应用...