![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
TroublemeX
这个作者很懒,什么都没留下…
展开
-
Springboot2集成Swagger2 访问/swagger-ui.html时出现弹窗提示Unable to infer base url.
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For ...原创 2019-03-28 21:43:12 · 4511 阅读 · 1 评论 -
Missing URI template variable 'page' for method parameter of type Integer
这是由于你controller里所访问方法的映射参数与方法的形式参数不一致所导致的。你的@RequestMapping(value={""}),但是你方法的参数注解使用了@PathVariable int page,然而路径里面并没有这个参数,所以才导致的这个错误...原创 2019-03-28 21:50:21 · 9998 阅读 · 1 评论 -
Springboot加入websocket后启动测试类报Error creating bean with name 'serverEndpointExporter
Springboot运行测试类对新模块进行测试的时候报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [**/WebSocketConfig.class...原创 2019-04-13 20:26:09 · 1340 阅读 · 1 评论 -
集成swagger偶现的MissingServletRequestParameterException
这个是由于使用@ApiParam注解时对name属性进行了设置,name字段的属性要与传入参数的名称一致,其中value字段才是对该字段的描述,这里不要弄错了,其中@ApiImplicitParam一致...原创 2019-04-25 20:40:29 · 458 阅读 · 1 评论