JAVA-2297: Update "Spring Boot custom error page" article

This commit is contained in:
sampadawagde
2020-08-02 23:17:57 +05:30
parent 8cda5bcaec
commit 47418ab40e
3 changed files with 8 additions and 5 deletions

View File

@@ -4,11 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<!-- an article in the module requires 2.3.x version, hence we are overriding it here.
After the parent is upgraded, the explicit version mapping should be removed, and the module should inherit from its parent: spring-boot-modules -->
<parent> <parent>
<groupId>com.baeldung.spring-boot-modules</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-modules</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>2.3.2.RELEASE</version>
<relativePath>../</relativePath> <relativePath />
</parent> </parent>
<artifactId>spring-boot-basic-customization</artifactId> <artifactId>spring-boot-basic-customization</artifactId>

View File

@@ -34,7 +34,7 @@ public class MyErrorController implements ErrorController {
@Override @Override
public String getErrorPath() { public String getErrorPath() {
return "/error"; return null;
} }
} }

View File

@@ -5,3 +5,4 @@
#spring.banner.image.height= //TODO #spring.banner.image.height= //TODO
#spring.banner.image.margin= //TODO #spring.banner.image.margin= //TODO
#spring.banner.image.invert= //TODO #spring.banner.image.invert= //TODO
server.error.path=/error