CloseTotheMoon 2015-09-09 01:41 采纳率: 75%
浏览 1662

使用maven进行 spring mvc项目管理时出错

初学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/#
  • 写回答

2条回答 默认 最新

  • gisdoer 2015-09-09 01:51
    关注

    重 头 来 试 试!

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题