JAVA-86: Refactor spring-boot-custom-error-page

This commit is contained in:
Krzysiek 2020-03-15 20:10:28 +01:00
parent 9a4f4e47dc
commit e2b2efa72d
2 changed files with 3 additions and 5 deletions

View File

@ -2,10 +2,8 @@ package com.baeldung.errorhandling;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = "com.baeldung.errorhandling")
@SpringBootApplication(scanBasePackages = "com.baeldung.errorhandling")
public class ErrorHandlingApplication {
public static void main(String [] args) {

View File

@ -1,7 +1,7 @@
#server
server.port=9000
server.servlet-path=/
server.context-path=/
spring.mvc.servlet.path=/
server.servlet.context-path=/
server.error.whitelabel.enabled=false
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration