初学maven和spring,昨天跟着教程自己搭建了一个javaweb,然后配置了spring和maven,在pom.xml进行spring依赖的时候,发现myeclipse报了很多错误
刚开始是以为没有对spring进行配置的缘故,后来在对spirng进行配置之后刷新工程错误依然存在。
log4j
log4j
1.2.17
compile
junit
junit
3.8.1
test
org.springframework
spring-context
3.2.8.RELEASE
runtime
org.springframework
spring-orm
3.2.8.RELEASE
compile
org.springframework
spring-web
3.2.8.RELEASE
compile
org.springframework
spring-webmvc
3.2.8.RELEASE
compile
org.springframework
spring-test
${spring.version}
test
org.springframework
spring-core
4.0.3.BUILD-SNAPSHOT
compile
这是在pom.xml中配置的spring相关依赖,
下面是spring的配置:
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
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.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
class="org.springframework.web.servlet.handler.SimpleUrl
HandlerMapping">
helloControl
<!-- 说明:hello.do的请求将给名为helloControl的bean进行处理。 -->
maven的settings.xml就改动了如下两部分:
E:\mavenstore\mvnRespo以及
uk
uk
http://uk.maven.org/maven2
central
希望有人能帮我查一下问题,谢谢。http://ask.csdn.net/#