0

Giving in a spring boot application I have a WebMvc configuration which extends WebMvcConfigurationSupport.

When I add a dependency to:

org.springframework.cloud:spring-cloud-starter-consul-discovery:1.2.1.RELEASE

Then I get:

Factory method 'defaultServletHandlerMapping' threw exception; nested exception is java.lang.IllegalArgumentException: A ServletContext is required to configure default servlet handling

Any hints?

Thank you!

Kidus Tekeste
  • 651
  • 2
  • 10
  • 28
Ask4Gilles
  • 61
  • 1
  • 10

1 Answers1

0

Extending from WebMvcConfigurerAdapter instead, fixed it.

Ask4Gilles
  • 61
  • 1
  • 10