小明博客 > 技术文案 >
Spring JPA 配置文件在Eclipse下报错
文章来源:友卉 时间:2025-03-28
新公司工程是用Maven办理的,技能上应用了JPA,然则尔导进工程到MyEclipse时,applicationContext.xml中提醒毛病:
Referencedfilecontainserrors(http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd)网上道须要用到:
http://www.springframework.org/schema/data/repository/spring-repository.xsd因而对于建设文献少干修正,没有报错,能够运转,修正后的设置文献头以下:
<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="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.谷歌code.com/svn/schema/ehcache-spring"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.2.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.2.xsdhttp://www.springframework.org/schema/jdbchttp://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsdhttp://www.springframework.org/schema/jeehttp://www.springframework.org/schema/jee/spring-jee-3.2.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.2.xsdhttp://www.springframework.org/schema/data/jpahttp://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsdhttp://www.springframework.org/schema/data/repositoryhttp://www.springframework.org/schema/data/repository/spring-repository-1.5.xsdhttp://ehcache-spring-annotations.谷歌code.com/svn/schema/ehcache-springhttp://ehcache-spring-annotations.谷歌code.com/svn/schema/ehcache-spring/ehcache-spring-1.2.xsd"default-lazy-init="true">道黑了,仍是某些空间不引进的题目。
推举您浏览更多相关于“ springjpaeclipse报错白叉 ”的作品