/ / Spring Cloud ConsulがServletContextの登録解除を引き起こす - spring-mvc、spring-boot、spring-cloud-consul

Spring Cloud ConsulがServletContextの登録解除を引き起こす - spring-mvc、spring-boot、spring-cloud-consul

私が持っている春のブートアプリケーションを与える WebMvc 拡張する構成 WebMvcConfigurationSupport.

依存関係を追加すると:

自動化

それから私は得る:

ファクトリメソッド "defaultServletHandlerMapping"が例外を送出しました。ネストされた 例外はjava.lang.IllegalArgumentExceptionです。ServletContextは デフォルトのサーブレット処理を設定するために必要

何かヒント?

ありがとうございました!

回答:

回答№1は0

からの拡張 WebMvcConfigurerAdapter 代わりに、それを固定しました。