最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Spring JPA配置文件Eclipse報錯如何解決

 更新時間:2020年10月21日 11:24:56   作者:cuisuqiang  
這篇文章主要介紹了Spring JPA配置文件Eclipse報錯如何解決,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友可以參考下

新公司工程是用Maven管理的,技術上使用了JPA,但是我導入工程到MyEclipse時,applicationContext.xml中提示錯誤:

Referenced file contains errors (http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd)

網(wǎng)上說需要用到:

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">

以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。

相關文章

最新評論

文昌市| 宜都市| 固镇县| 沂水县| 温泉县| 香港| 磐安县| 冕宁县| 盐源县| 马公市| 亚东县| 元谋县| 炎陵县| 拉萨市| 江门市| 宜春市| 巨鹿县| 米易县| 乌拉特中旗| 大洼县| 达州市| 曲阜市| 龙里县| 佛冈县| 建平县| 阳山县| 新和县| 永康市| 阳信县| 甘洛县| 亚东县| 南投县| 石家庄市| 共和县| 长丰县| 清流县| 剑川县| 南部县| 若尔盖县| 申扎县| 保靖县|