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 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记