Spring JPA 配置文件在Eclipse下报错
2014-11-13 16:20
417 查看
新公司工程是用Maven管理的,技术上使用了JPA,但是我导入工程到MyEclipse时,applicationContext.xml中提示错误:
网上说需要用到:
于是对配置文件少做修改,不报错,可以运行,修改后的配置文件头如下:
请您到ITEYE网站看 java小强 原创,谢谢!
http://cuisuqiang.iteye.com/ !
自建博客地址:http://www.javacui.com/ ,内容与ITEYE同步!
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.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd http://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同步!
相关文章推荐
- eclipse开发spring配置文件xml代码不提示的解决办法
- JPA+Spring+druid+hibernate+maven+resetlet 配置文件
- eclipse中spring配置文件的自动提示和命名空间的添加
- Spring Date jpa 配置文件 spring.xml
- eclipse中配置Spring配置文件自动提示和命名空间
- jpa+spring文件配置
- Apache shiro+springmvc+springdata+jpa+swagger(零配置文件使用)
- eclipse 使用maven 构建springboot 读取多个配置文件
- spring整合springmvc和spring-date-jpa配置文件
- Spring Date jpa 配置文件 spring.xml
- spring jpa 的配置文件
- spring+hibernate+jpa+Druid的配置文件,spring整合Druid
- spring与jpa整合 简化persistence.xml配置文件 使用属性文件 数据源dbcp访问数据库
- Eclipse编辑Spring配置文件xml时自动提示类class包名
- 这两天整理springmvc+jpa+vaadin整理好了。现在吧pom.xml和一些配置文件发出来。
- eclipse编辑spring配置文件无提示(转)
- Spring Data JPA 的配置文件 已经数据库的状态
- Spring配置文件中属性值不能提示的解决办法(eclipse添加xsd文件)
- (转)Eclipse编辑Spring配置文件xml时 提示类class包名,更新springIDE
- 使用eclipse开发spring,hibernate,mybatis等框架的xml配置文件时代码不自动提示