Where is the exact location of spring config file and web.xml?

后端 未结 2 2104
滥情空心
滥情空心 2021-02-10 00:19

Getting the Class Not Found Exception for DispatcherServlet while rendering index.jsp which is in WEB-CONTENT/WEB-INF/jsp/index.jsp

Following are how the project is stru

2条回答
  •  甜味超标
    2021-02-10 00:37

    web.xml is placed under WEB-INF and then in that you can refer your spring xml like this:

    
        myservlet
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            /WEB-INF/abc-servlet.xml
        
        1
        true
    
    

提交回复
热议问题