Flask接口签名sign原理与实例代码浅析
377
2022-11-16
Spring JPA配置文件Eclipse报错如何解决
新公司工程是用Maven管理的,技术上使用了JPA,但是我导入工程到MyEclipse时,applicationContext.xml中提示错误:
Referenced file contains errors (http://springframework.org/schema/data/jpa/spring-jpa-1.3.xsd)
网上说需要用到:
http://springframework.org/schema/data/repository/spring-repository.xsd
于是对配置文件少做修改,不报错,可以运行,修改后的配置文件头如下:
xmlns:xsi="http://w3.org/2001/XMLSchema-instance" xmlns:conthttp://ext="http://springframework.org/schema/context" xmlns:jdbc="http://springframework.org/schema/jdbc" xmlns:jee="http://springframework.org/schema/jee" xmlns:tx="http://springframework.org/schema/tx" xmlns:jpa="http://springframework.org/schema/data/jpa" xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring" xsi:schemaLocation=" http://springframework.org/schema/beans http://springframework.org/schema/beans/spring-beans-3.2.xsd http://springframework.org/schema/context http://springframework.org/schema/context/spring-context-3.2.xsd http://springframework.org/schema/jdbc http://springframework.org/schema/jdbc/spring-jdbc-3.2.xsd http://springframework.org/schema/jee http://springframework.org/schema/jee/spring-jee-3.2.xsd http://springframework.org/schema/tx http://springframework.org/schema/tx/spring-tx-3.2.xsd http://springframework.org/schema/data/jpa http://springframework.org/schema/data/jpa/spring-jpa-1.3.xsd http://springframework.org/schema/data/repository http://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">
xmlns:xsi="http://w3.org/2001/XMLSchema-instance"
xmlns:conthttp://ext="http://springframework.org/schema/context"
xmlns:jdbc="http://springframework.org/schema/jdbc"
xmlns:jee="http://springframework.org/schema/jee"
xmlns:tx="http://springframework.org/schema/tx"
xmlns:jpa="http://springframework.org/schema/data/jpa"
xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
xsi:schemaLocation="
http://springframework.org/schema/beans
http://springframework.org/schema/beans/spring-beans-3.2.xsd
http://springframework.org/schema/context
http://springframework.org/schema/context/spring-context-3.2.xsd
http://springframework.org/schema/jdbc
http://springframework.org/schema/jdbc/spring-jdbc-3.2.xsd
http://springframework.org/schema/jee
http://springframework.org/schema/jee/spring-jee-3.2.xsd
http://springframework.org/schema/tx
http://springframework.org/schema/tx/spring-tx-3.2.xsd
http://springframework.org/schema/data/jpa
http://springframework.org/schema/data/jpa/spring-jpa-1.3.xsd
http://springframework.org/schema/data/repository
http://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">
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~