spring boot set custom 404 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>