how do i configure applicationcontext.xml in eclipse

前端 未结 2 1356
青春惊慌失措
青春惊慌失措 2021-01-20 19:49

when i put struts.xml in web-inf it is showing error......when i put in src folder it is working fine.(being applicationcontext.xml in web-inf)

(being struts.xml in

2条回答
  •  一个人的身影
    2021-01-20 20:14

    Configure context-param in web.xml like below:

    
        contextConfigLocation
         /WEB-INF/application-context.xml
      
    

    And put your application-context.xml in WEB-INF folder.

提交回复
热议问题