With springboot embedded Tomcat, you'll find that the page reports 404 error codes at a time, as follows 17:01:06.322 [http-nio-8080-exec-4] WARN O.s.web.servlet.pagenotfound-no mapping found for HTTP request with URI [/ehr/web-inf/ehr/commons/jsp/mainlayout.jsp] I
n dispatcherservlet with Name ' Dispatcherservlet ' June, 2017 5:01:06 PM org.apache.catalina.core.ApplicationContext Log Severe:error during mapping java.lang.NullPointerException at Org.apache.catalina.mapper.Mapper.internalMapWrapper ( mapper.java:1008) at Org.apache.catalina.mapper.Mapper.map (mapper.java:712) at Org.apache.catalina.core.Applicatio Ncontext.getrequestdispatcher (applicationcontext.java:499) at Org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher (applicationcontextfacade.java:221) at Org.apache.catalina.core.StandardHostValve.custom (standardhostvalve.java:427) at Org.apache.catalina.core.StandardHostValve.status (standardhostvalve.java:304) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:1Bayi) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79) at org.apache.catalina.core.St Andardenginevalve.invoke (standardenginevalve.java:88) at Org.apache.catalina.connector.CoyoteAdapter.service ( coyoteadapter.java:522) at Org.apache.coyote.http11.AbstractHttp11Processor.process (Abstracthttp11processor.java : 1095) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:672) at ORG.A Pache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1500) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1456) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:745)
After code troubleshooting:
First, turn off the wrong handler of Springboot.
Error:
Whitelabel:
enabled:false
The probability of finding a newspaper 404 is small, but it will be found. The final source investigation found as follows
MappingData.context.getMapperDirectoryRedirectEnabled () may be empty, check the official website, found that the official website has resolved this bug
https://bz.apache.org/ bugzilla/show_bug.cgi?id=59255
Final Solution:
Tomcat version 8.0.32 replaced with version 8.0.44
Here's the code for 8.0.44.