Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

boot-rest-customize-whitelabelerror

pom.xml

4.0.0org.springframework.boot
		spring-boot-starter-parent
		2.2.8.RELEASEcom.candidjava
	customwhitelabel_error
	0.0.1-SNAPSHOTcustomwhitelabel_errorDemo project for Spring Boot1.8org.springframework.boot
			spring-boot-starter-web
		org.springframework.boot
			spring-boot-starter-thymeleaf
		org.springframework.boot
				spring-boot-maven-plugin
			

application.properties

#Disabling Default while lable error
server.error.whitelabel.enabled=false

error.html


    404 - resource not found

404 - Resource not found

The requested Resource was not found; template - specific

Error Info

Status

CustomwhitelabelErrorApplication.java

package com.candidjava.customwhitelabel_error;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class CustomwhitelabelErrorApplication {

 public static void main(String[] args) {
  SpringApplication.run(CustomwhitelabelErrorApplication.class, args);
 }

}


This post first appeared on Core Java,Servlet,Jsp,Struts,Hibernate,Spring Fram, please read the originial post: here

Share the post

boot-rest-customize-whitelabelerror

×

Subscribe to Core Java,servlet,jsp,struts,hibernate,spring Fram

Get updates delivered right to your inbox!

Thank you for your subscription

×