当我用spring v.3.1执行我的java项目时,我得到以下错误:
Bean 'configParser'; nested exception is
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]
Offending resource: class path resource [Services.xml]
Bean 'configParser'
Run Code Online (Sandbox Code Playgroud)
我的POM具有以下依赖性:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我的Service.xml文件:
<?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:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
<bean id="configParser" class="com.cc.mp.srv.core.parser.ConfigParser">
<property name="file" >
<util:constant static-field="com.cc.mp.srv.main.Main.FILE_NAME"/>
</property>
</bean>
Run Code Online (Sandbox Code Playgroud)
为什么找不到实用程序架构?我在pom文件中插入核心依赖项.版本号也是一样的.什么需要春天呢?
编辑
Loading schema …Run Code Online (Sandbox Code Playgroud) Git抛出一个错误:
fatal: multiple stage entries for merged file
Run Code Online (Sandbox Code Playgroud)
我一直站在一边(在多个阶段条目的git中出现致命错误)并阅读解决方法:
cd /patH/to/second/cloned/repo
git --work-tree=/path/to/first/repo add .
Run Code Online (Sandbox Code Playgroud)
现在,可以通过状态查询更改,但之后我现在必须做什么?当我使用git add时,一切都回到最后一个版本.所有的变化都消失了.更改已删除,我的新回购再次具有旧状态.如何将所有更改放入新存储库?我在OS X 10.10上使用git 2.2.0版.
如果我设置断点并启动调试模式,Xcode会尝试读取属性,然后Xcode崩溃.源代码中断点的位置没有影响.我尝试了以下步骤:XCode崩溃后:
但Xcode仍然崩溃和崩溃......我使用Xcode 7.1和Yosemite(我无法更新到El Capitan).