文章 2024-01-18 来自:开发者社区

Swagger问题:No mapping for GET /swagger-ui.html报错

Swagger问题:No mapping for GET /swagger-ui.html报错简介:本文讲解No mapping for GET /swagger-ui.html这个报错的解决方法。只需要对SwaggerConfig的配置类继承WebMvcConfigurer,然后加上重载方法就好了。@Configuration @EnableWebMvc @EnableSwagger2 // ....

Swagger问题:No mapping for GET /swagger-ui.html报错
文章 2023-06-30 来自:开发者社区

springboot整合swagger打不开ui页面、打开访问页面控制台报错问题

Illegal DefaultValue null for parameter type numberjava.lang.NumberFormatException: empty String如果控制台报这个错是因为实体类属性注解的example示例值没有填,Integer类型的属性必须填示例值,如果不填或者不写此属性,他会自动把一个空字符串转换Integer类型,故报错。这个问题百度了一下看别....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"PAI部署多形态的SD WebUI服务","productDescription":"为企业提供云上快速部署定制化的文生图应用。","productContentLink":"https://www.aliyun.com/solution/tech-solution/pai_eas","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/pai_eas"},"productButton2":{"productButtonText":"一键部署","productButtonLink":"https://help.aliyun.com/document_detail/2509703.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"AnalyticDB 与通义千问搭建 AI 智能客服","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/analyticdb-rag","productPromotionInfoSecondText":"通义千问和LangChain搭建对话服务 ","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/tongyi-langchain"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}

阿里巴巴终端技术

阿里巴巴终端技术最新内容汇聚在此,由阿里巴巴终端委员会官方运营。阿里巴巴终端委员会是阿里集团面向前端、客户端的虚拟技术组织。我们的愿景是着眼用户体验前沿、技术创新引领业界,将面向未来,制定技术策略和目标并落地执行,推动终端技术发展,帮助工程师成长,打造顶级的终端体验。同时我们运营着阿里巴巴终端域的官方公众号:阿里巴巴终端技术,欢迎关注。

+关注