Whitelabel Error Page is a generic Spring Boot error page which is displayed when no custom error page is found. Set “server.error.whitelabel.enabled=false” to switch of the default error page.
How do I fix whitelabel error?
enabled to false . Another way of disabling the WhiteLabel Error is excluding the ErrorMvcAutoConfiguration . Alternatively, the exclusion can be done in an annotation. When the WhiteLabel Error Page is disabled and no custom error page is provided, the web server’s error page (Tomcat, Jetty) is shown.
What is no explicit mapping for spring boot error?
Make sure that your main class is in a root package above other classes. When you run a Spring Boot Application, (i.e. a class annotated with @SpringBootApplication), Spring will only scan the classes below your main class package.