spring set 404 error message code example
Example 1: create spring 404 error controller
server.error.whitelabel.enabled=false
Example 2: 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>