JAVA-86: Refactor spring-boot-custom-error-page
This commit is contained in:
parent
9a4f4e47dc
commit
e2b2efa72d
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user