Home > Back-end >  Java web development web. XML files inside have <init - param>, but no actual effect
Java web development web. XML files inside have <init - param>, but no actual effect

Time:10-03

Look at the picture, I have told web. XML is for springmvc XML, but running time is also looking for the default XML

CodePudding user response:

 

ContextConfigLocation
/WEB - INF/applicationContext. Xml

CodePudding user response:

reference 1st floor Little5 response:
 

ContextConfigLocation
/WEB - INF/applicationContext. Xml

not, ah, I'm no good to make the most of

CodePudding user response:

Spring can not find your scheduler configuration, you did not define contextConfigLocation, in this case, the Spring to try to load the scheduler configuration/WEB - INF/& lt; The servlet - name> - the servlet. XML, in terms of your/WEB - INF/MVC - the dispatcher - servlet. XML,

Either you put your configuration/WEB - INF/, renamed the MVC - the dispatcher - servlet. XML or you define contextConfigLocation in your WEB. XML:


MVC - dispatcher

Org. Springframework. Web. Servlet. DispatcherServlet

ContextConfigLocation
/points/to/your/configuration. Xml


I am
https://stackoverflow.com/questions/33820507/could-not-open-servletcontext-resource-web-inf-mvc-dispatcher-servlet-xml
See the same mistake, I follow suit, the error is still the same, I don't know why

CodePudding user response:

I solved the
& lt; Param - name> ContextConfigLocation
/points/to/your/configuration. Xml
Here & lt; Param - name> Be sure to clearly for the contextConfigLocation
  • Related