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 2020/03/17 07:40:59 UTC

[GitHub] [servicecomb-java-chassis] Fang57 opened a new issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed

Fang57 opened a new issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1639
 
 
   在文档上看到接口参数不支持HttpServletResponse ,请问异常类Errors也不支持吗
   
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;
   import org.springframework.validation.Errors;
   
   @RequestMapping(value = "/demo/v1/hello", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
       public String queryConfig(@PathVariable(value = "id") Integer id,
                                   @Valid @RequestBody NodeInfo nodeInfo,
                                   Errors errors,
                                   HttpServletRequest request,
                                   HttpServletResponse response) {
           return HttpStatus.OK.toString();
       }

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] Fang57 closed issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed

Posted by GitBox <gi...@apache.org>.
Fang57 closed issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1639
 
 
   

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] Fang57 commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed

Posted by GitBox <gi...@apache.org>.
Fang57 commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1639#issuecomment-599932273
 
 
   接口改造时发现有有接口用到了Errors类进行异常处理,所以想确认下

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] heyile commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed

Posted by GitBox <gi...@apache.org>.
heyile commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1639#issuecomment-599925525
 
 
   把问题场景和背景说下吧. 为啥要用Errors. 然后给一个可用的 demo

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1639: SpringCloud项目改造为Springboot项目时,generate operation swagger failed
URL: https://github.com/apache/servicecomb-java-chassis/issues/1639#issuecomment-599925080
 
 
   能否打开Errors类详细看下, [类型约束参考](https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints/)

----------------------------------------------------------------
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