Skip to content

Commit

Permalink
Merge pull request #536 from cberg-zalando/register-exeception-handli…
Browse files Browse the repository at this point in the history
…ng-early-enough

Register ExceptionHandling bean before WebMvcAutoConfiguration
  • Loading branch information
Willi Schönborn authored Sep 23, 2020
2 parents 7dbf402 + 8b568e2 commit ca0329a
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 ca0329a

Please sign in to comment.