You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/08/31 01:33:41 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 commented on issue #1314: cse如何定义Springboot的HandlerInterceptor拦截器。

yhs0092 commented on issue #1314:  cse如何定义Springboot的HandlerInterceptor拦截器。
URL: https://github.com/apache/servicecomb-java-chassis/issues/1314#issuecomment-526789057
 
 
   SpringBoot+Java-Chassis开发方式有两种,分别是[Java应用开发方式](https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/java-application.html)和[Web开发方式](https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/web-application.html)。
   根据你的描述,由于引用了`spring-boot-starter-provider`依赖包,你的服务应该是使用的Java应用开发方式,这种方式下你的服务运行在Vertx上,不是SpringBoot提供的内嵌Tomcat上,所以自定义的用于Tomcat的拦截器也是没办法生效的。
   至于工程无法启动的问题,建议你先按照java-chassis文档资料做一下调整,再看看问题还存不存在。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services