配置应用程序监听器[org.springframework.web.context.ContextLoaderListener]错误

首先查看自己的配置文件(我maven项目)

web.xml(内容除了文件的配置位置外,是否有其他的不同)





    
        springmvc
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            classpath:config/springmvc-config.xml
        

    

    
        springmvc
        
        *.action
    

    
    
        encoding
        org.springframework.web.filter.CharacterEncodingFilter
        
            encoding
            utf-8
        
    
    
        encoding
        /*
    


    
    
        
            org.springframework.web.context.ContextLoaderListener
        
    
    
        contextConfigLocation
        classpath:config/application.xml
    

第二部看applicationContext配置文件




    
    
    


 spring-mapper文件



    
    
    

    
        
        
        
        
    

    
        
        
        
    
    
    
        
        
    

spring-service文件



    
    


    
    
        
        
    

    
    
    


第三步(上面无误的话大概率是maven的问题)

配置应用程序监听器[org.springframework.web.context.ContextLoaderListener]错误_第1张图片

如果你这部分有路径的报错,直接将这个war删除,重新引入

配置应用程序监听器[org.springframework.web.context.ContextLoaderListener]错误_第2张图片配置应用程序监听器[org.springframework.web.context.ContextLoaderListener]错误_第3张图片

之后就OK了。!!!(有别的问题私我,我一直在)

你可能感兴趣的:(spring,java,spring,maven)