@H_404_1@i face a problem when i using spring cloud gateway@H_404_1@is if any dependency call spring-boot-starter-tomcat directly or recursively @H_404_1@it will not work because it will start the embedded tomcat server not the netty server that spring cloud gateway use@H_404_1@我开始通过排除这种依赖性来解决这个问题@H_404_1@
the spring cloud gateway worked successfully
but sometimes i want to use spring-cloud-starter-oauth2 to use @EnableOAuth2Sso
我开始使用
at that time i face the big issue that throw exception saying
Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.security.oauth2.config.annotation.web.configuration.OAuth2ClientConfiguration
……
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
最佳答案正如您所见,Spring云网关使用反应模型,而不是基于netty而不是tomcat.反应性变化是一个重大转变,目前Spring Security不支持,但工作正在进行中,您可以在https://github.com/spring-cloud/spring-cloud-gateway/issues/179跟踪它 总结 以上是内存溢出为你收集整理的java – 使用带有oauth2的spring cloud gateway全部内容,希望文章能够帮你解决java – 使用带有oauth2的spring cloud gateway所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)