新的错误:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]这个应该是文件头部的错误,可是检查不出来哪里错了:<beans xmlns="http://www.springframework.org/schema/beans"
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"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
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/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
            http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
            

解决方案 »

  1.   

    如果你对springMVC和它的配置还不够熟悉的话,建议你先找一个可以成功运行的项目,把配置文件的每个部分是做什么用的,都熟记于心,对你日后搭建项目和配置排错很有帮助。
      

  2.   

    不能加载,就说明本地找不到,也就是没有导入这样的jar,一般这种schema文件都在jar里,查看版本和jar是否匹配。先clean下工程看看。
      

  3.   

    现在springMVC和hibernate的配置快好了,不过日志的这块怎么处理啊。现在我没有配置有关的日志内容。框架应该会有自己的日志吧。现在我要添加日志把这个项目的所有的用户的登入时间,ip,以及后续的操作填写进自己的日志并保存下来,(每一年产生一个日志),这个自定义的日志怎么配置和使用。能不能给我推荐几个好的学习博客!!!
      

  4.   

    结合我目前的项目,我们有两级的日志。
    1) Catalina.log
    这是Server级的,由于我们用的是Tomcat,不同Web Server/Web Container会有自己的名字。
    2) 另外就是应用程序级的。
    这里可以分好几个level。比较常用的是Debug和Info级。