
错误汇总
文章平均质量分 55
Jiutwo
这个作者很懒,什么都没留下…
展开
-
FastApi Swagger 序列化问题
如下所示,在接口定义的时候指定了response_model 参数,用于告诉swagger当前接口的返回值的具体类型。但是由于指定的 Database 类使用了pydantic,属性中含有不支持的类型,但是没有做相应的序列化操作。如果需要保留则可以把属性中pydantic不支持的类型,替换为支持的类型。简单来说,只需要把 response_model 参数配置去调即可。原创 2025-01-13 00:07:04 · 413 阅读 · 0 评论 -
错误总结:“java: 找不到符号“
如果仍然报错,则打开 Setting ⇒ Build,Execution,Deployment ⇒ Compiler ⇒ Java Compiler,设置字节码的版本,改为正确的字节码版本。:新项目基于JDK 17开发,发现一旦使用JDK 8以后的新增的方法,就会报错,最终发现是IDEA中的字节码版本为8,修改为17后恢复正常。打开项目结构设置,File ==> Project Structure。在Project 和 Module 下设置正确的JDK版本。玄学,但是有时可以解决。原创 2023-03-17 11:27:43 · 3115 阅读 · 0 评论 -
SpringBoot 配置 https 报错 Password verification failed
报错信息:Caused by: java.lang.IllegalArgumentException: Keystore was tampered with, or password was incorrect at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:99) at org.apache.tomcat.util.net.AbstractJsseEndpoin原创 2022-02-19 14:18:53 · 2824 阅读 · 1 评论 -
错误:NoClassDefFoundError io/opentracing/util/GlobalTracer
错误描述:Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError:io/opentracing/util/GlobalTracer报错原因:我们需要将 NoClassDefFoundError 添加到 Classpath 或检查为什么它在 Classpath 中不可用。可能有多种原因,例如:该类在 Java 类路径中不可用。也许您正在使用 jar 运行您的程序,并且该类未在 ClassPath 属性中原创 2021-07-30 23:07:36 · 1780 阅读 · 0 评论 -
错误:Spring Boot报错 Failed to configure a DataSource
错误详情:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.报错原因:没有配置文件中配置数据源yml或者properties文件没有被扫描到, 需要在pom文件中添加如下,来保证文件都能正常被扫描到并且加载成功<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 或者在配置文原创 2021-07-26 22:43:41 · 273 阅读 · 0 评论