Home > Back-end >  In the web. In the XML configuration the listener, to load the spring configuration file, tomcat sta
In the web. In the XML configuration the listener, to load the spring configuration file, tomcat sta

Time:10-12

On the web. In the XML configuration the listener, to load the spring configuration file, access to 404 page after the tomcat startup, comment out the listener after page can normal visit, but subsequent operations will offer No WebApplicationContext found: No ContextLoaderListener registered? Exclude this error, please!

CodePudding user response:

Maybe it's a configuration is wrong, check it again,,,

CodePudding user response:

Set up spring MVC don't need to write any XML,,,

CodePudding user response:

should be yes

CodePudding user response:

The listener must be configured, used to initialize the container

CodePudding user response:

https://gitee.com/jsjlkw/spring_mvc this is my configuration, you can consult

CodePudding user response:

Can start, no exception, container configuration should be no problem, after the tomcat startup will open the WebContent folder of the default index welcome page, if you do not have this page, will be submitted to the 404 abnormal, and if you wrong path, 404 abnormal, you try to find out reasons from these aspects, you haven't posted the other code, poor judgment,

CodePudding user response:

refer to 6th floor Little5 response:
can start, not the exception, container configuration should be no problem, after the tomcat startup will open the WebContent folder of the default index welcome page, if you do not have this page, will be submitted to the 404 abnormal, and if you wrong path, 404 abnormal, you try to find out reasons from these aspects, you haven't posted the other code, poor judgment,

Okay, I see the
  • Related