
前言阅读本文前请先确定访问 swagger-ui 的路径是否正确,本文描述的 404 错误与访问路径无关。 Swagger 2:http://localhost:8080/swagger-ui.html Swagger 3(OpenAPI 3.0):http://localhost:8080/swagger-ui/index.html 问题描述我在 Spring Boot 中使用 Spring ...

先说解决方案:使用 getOutputStream() 替换 getWriter() 来获取输出流。 错误描述在 Spring Boot 应用中使用 HttpServletResponse 输出自定义内容时报错,错误如下: Caused by: java.lang.IllegalStateException: getWriter() has already been called for thi ...

问题描述Kubernetes 集群中一个 node 上部署的 SpringBoot 程序在连接 redis 集群时报错,提示 connect timed out ,详细报错如下: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.da ...

问题描述Spring Boot程序打包后部署报 ClassNotFoundException: javax.servlet.Filter 错误,详细报错如下: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.lanweihong.hote ...

问题描述在 vue 项目中,重复单击路由会报以下错误,虽然不影响程序的正常运行,但赤裸裸的显示在控制台实在令人不爽,所以还是想办法解决这个错误。 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/users". at create ...

错误描述我的一个 Vue 应用在开启 Gzip 压缩后,使用 npm run build 生成时报错,报错内容如下: ValidationError: Invalid options object. Compression Plugin has been initialized using an options object that does not match the API schema. ...

问题描述我的一个 Vue 应用在开启 Gzip 压缩后,使用 npm run build 生成时报错,报错内容如下: TypeError: Cannot read property 'thisCompilation' of undefined at CompressionPlugin.apply (D:\Code\JS\pms\node_modules\compressio ...