Spring JPA 配置文件在Eclipse下报错
来源:互联网 发布:食品溯源知乎 编辑:程序博客网 时间:2024/06/06 07:45
新公司工程是用Maven管理的,技术上使用了JPA,但是我导入工程到MyEclipse时,applicationContext.xml中提示错误:
Referenced file contains errors (http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd)
网上说需要用到:
http://www.springframework.org/schema/data/repository/spring-repository.xsd
于是对配置文件少做修改,不报错,可以运行,修改后的配置文件头如下:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"xmlns:jpa="http://www.springframework.org/schema/data/jpa"xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsdhttp://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsdhttp://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsdhttp://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsdhttp://www.springframework.org/schema/data/repository http://www.springframework.org/schema/data/repository/spring-repository-1.5.xsd http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.2.xsd"default-lazy-init="true">
请您到ITEYE网站看 java小强 原创,谢谢!
http://cuisuqiang.iteye.com/ !
自建博客地址:http://www.javacui.com/ ,内容与ITEYE同步!
0 0
- Spring JPA 配置文件在Eclipse下报错
- spring jpa 的配置文件
- Spring+JPA+MySQL的配置文件
- spring+jpa(hibernate) 配置文件代码
- Spring Date jpa 配置文件 spring.xml
- Eclipse中搭建spring+jpa
- spring整合springmvc和spring-date-jpa配置文件
- spring+hibernate+jpa+Druid的配置文件,spring整合Druid
- JPA配置文件
- Spring Data JPA applicationContext.xml 配置文件报错的解决办法
- maven工程:spring+jpa(hhibernate)(cxf服务端配置文件代码)
- 在Spring环境中建立JPA Spring JPA 提供了三种方法创建JPA EntityManagerFactory:
- 在Spring环境中建立JPA
- 在Spring框架下配置JPA
- 在Spring环境中建立JPA
- 在Spring框架下配置JPA
- 转:在Spring框架下配置JPA
- 初识在Spring Boot中使用JPA
- Kaptcha 在Web页面生成验证码
- Spring 使用注解配置使用ehcache
- hadoop运行python
- HDU4939 dp
- 安装CocoaPods步骤
- Spring JPA 配置文件在Eclipse下报错
- 深入了解存储引擎存储结构
- SpringMVC 表单提交参数不匹配报错
- Android权限大全代码
- 服务器最怕什么?
- 字符串转浮点
- mysql常用命令
- DOM解析XML报错:Content is not allowed in prolog
- 破ioIIus地方就回家回家