-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Description
The library is not initialised when using the annotation @SpringBootApplication(exclude = ErrorMvcAutoConfiguration.class)
Expected Behavior
The expected behaviour should be the default error response from the library.
Actual Behavior
The default Spring boot response is returned (empty).
Steps to Reproduce
-
Added library
<dependency> <groupId>org.zalando</groupId> <artifactId>problem-spring-web-starter</artifactId> <version>0.27.0</version> </dependency>
-
Configure Spring boot
web: resources: add-mappings: false mvc: throw-exception-if-no-handler-found: true
-
Used annotation
@SpringBootApplication(exclude = ErrorMvcAutoConfiguration.class)
-
Alternatively tried with following without success
@EnableAutoConfiguration(exclude = {ErrorMvcAutoConfiguration.class}) @Configuration @ComponentScan(basePackages = "com.foo.bar") @SpringBootConfiguration
Your Environment
- Version used: 0.27.0
- Spring Boot version: 2.6.6