Bug report

Today updated boot 2.0, WebMvcConfigurerAdapter mark is Deprecated, use WebMvcConfigurer and then add the interceptor, start the error this is the error info:

 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]: Factory method 'requestMappingHandlerMapping' threw exception; nested exception is java.lang.StackOverflowError

Comment From: philwebb

@kkrgwbj Are you able to share a project that replicates the issue?

Comment From: kkrgwbj

@philwebb Thank you for your reply, I have solved, this error is own code problems.

Comment From: GuiRitter

I'm facing the same error.

It would be nice to have included what was wrong...