Skip to content

Commit

Permalink
Register ExceptionHandling bean before WebMvcAutoConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-zalando committed Sep 23, 2020
1 parent 7dbf402 commit 8b568e2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package org.zalando.problem.spring.web.autoconfigure;

import org.apiguardian.api.API;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zalando.problem.spring.web.advice.AdviceTrait;
Expand All @@ -12,6 +14,7 @@
@API(status = INTERNAL)
@Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication
@AutoConfigureBefore(WebMvcAutoConfiguration.class)
public class ProblemAutoConfiguration {

@Bean
Expand Down

0 comments on commit 8b568e2

Please sign in to comment.