問題タブ [spring-cloud-consul]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
spring-mvc - Spring Cloud Consul が ServletContext の登録解除を引き起こす
スプリング ブート アプリケーションを提供すると、WebMvcConfigurationSupportWebMvc
を拡張する構成があります。
依存関係を追加すると:
org.springframework.cloud:spring-cloud-starter-consul-discovery:1.2.1.RELEASE
それから私は得る:
ファクトリ メソッド 'defaultServletHandlerMapping' が例外をスローしました。ネストされた例外は java.lang.IllegalArgumentException です: デフォルトのサーブレット処理を構成するには ServletContext が必要です
ヒントはありますか?
ありがとうございました!