Answers for "create spring 404 error controller"

0

create spring 404 error controller

server.error.whitelabel.enabled=false
Posted by: Guest on May-29-2020
0

create spring 404 error controller

<!DOCTYPE html>
<html>
<body>
<h1>Something went wrong! </h1>
<h2>Our Engineers are on it</h2>
<a href="/">Go Home</a>
</body>
</html>
Posted by: Guest on May-29-2020
0

spring mvc 404 page not found

<web-app ...>

  <servlet>
  	<servlet-name>mvc-dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
 	<servlet-name>mvc-dispatcher</servlet-name>
        <url-pattern>*.htm</url-pattern>
  </servlet-mapping>

  //...
  <error-page>
	<error-code>404</error-code>
	<location>/WEB-INF/pages/404.htm</location>
  </error-page>

</web-app>
Posted by: Guest on May-07-2020

Browse Popular Code Answers by Language