Perfect solution SSM project page could not be loaded super slow response org.springframework.util.xml.SimpleSaxErrorHandler.warning Ignored XML wait localhost

Problem Description

Afternoon online class time to follow the teacher step by step operation suddenly found the project started up not visit in the browser
Here Insert Picture Description
of the project is to practice project deployment time static files on a local Tomcat server is no problem seconds to open
, but in a browser to access the configuration mapping the path when the page tab on the left of the small circle in turn has waited a long time waiting for the chance to perform will have to see
then the lower left corner of the display has been waiting for a response localhost Controller in the written statement did not execute output looking for a long obstinately Can not find what causes
the beginning thought it was the port for a port problem persists Tomcat also reconfigure the IDEA also restart useless

Very disgusting an exception not only easy to see the reasons try the no fewer than ten times before he succeeded to reproduce the bug to start a pit twenty-three minutes too distracted the attention of most online courses

bug is described like this:

org.springframework.util.xml.SimpleSaxErrorHandler.warning Ignored XML validation warning

Abnormal causes

Jar package version of Spring and Spring configuration file constraints are inconsistent leading to the anomaly
that exception does not make the project package will only stop long to resolve the constraints of the project has been in a state deploy

I am bound version 4.3 of this dependence is copied from previous projects come directly because of his previous project using a Maven Spring fixed version is 4.3
Here Insert Picture Description
JAR package the project with a teacher issued version 4.1 ( I also note that this was the jar package directly copied on imported did not look carefully)
Here Insert Picture Description


Abnormal Solution

The later version of the file into a bound version of the Spring jar package
or the same version of the file to import and constraints Spring jar package
summary shall be so constrained version of the profile and Spring versions of the same
Here Insert Picture Description
constraint into version 4.1 the perfect solution


Published 174 original articles · won praise 5 · Views 240,000 +

Guess you like

Origin blog.csdn.net/Piconjo/article/details/105226640