
日常错误处理
MarkCoder
android,鸿蒙,小程序,app,网站,管理系统,大数据,ai开发等一位久经沙场的老将分享知识。
展开
-
vue常见错误-slot-scope
错误情况:(Emitted value instead of an instance of Error) the “scope” attribute for scoped slots have been deprecated and replaced by “slot-scope” since 2.5. The new “slot-scope” attribute can also be used on plain elements in addition to to denote scoped s原创 2020-09-02 07:46:45 · 5734 阅读 · 0 评论 -
maven的jar包冲突问题解决方案
报错信息:An attempt was made to call the method com.google.common.collect.FluentIterable.append(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; but it does not exist. Its class, com.google.common.collect.FluentIterable, is available from the f原创 2020-07-14 17:34:50 · 1183 阅读 · 0 评论 -
HTTP Status 404(The requested resource is not available) 详解解决方案
如果你启动项目,访问的报错HTTP Status 404(The requested resource is not available)Status状态码404表示 请求的资源不可用出现404原因:(1) 检查你浏览器地址栏上面的路径和 代码里面的路径是否匹配成功,如果不匹配,就会报错404(2)如果有权限拦截,查看静态资源是否已经放行。(3)如果传统的web项目 里面的web.xml是否已经配置内容。如果没有配置 出现404(4) 是否扫描对于的包路径,对象注入到容器里面,如果没原创 2020-07-02 14:36:54 · 20533 阅读 · 12 评论 -
Spring Boot打包部署项目报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21
Spring boot打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21如果项目打成jar包的时候报上面的错误解决方案:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <ve原创 2020-06-13 20:32:48 · 262 阅读 · 0 评论 -
OAuth Error error invalid_request error_description At least one redirect_uri must be registered
出现该错误:OAuth Error error=“invalid_request”, error_description="At least one redirect_uri must be registered解决方法:在OAuth服务端设置中添加 redirectUris(String…)方法,如@Configuration@EnableAuthorizationServerpublic class OAuth2AuthorizationServerConfig extends Author原创 2020-06-12 19:45:44 · 4105 阅读 · 0 评论 -
ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig
ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig出现该问题,说明你的jar包出问题了,你只需要在项目里面加入依赖 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> <version>2.原创 2020-06-11 19:51:27 · 4485 阅读 · 0 评论 -
无法访问javax.servlet.Filter找不到javax.servlet.Filter的类文件
无法访问javax.servlet.Filter找不到javax.servlet.Filter的类文件解决办法:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>原创 2020-06-10 21:15:27 · 9577 阅读 · 1 评论 -
异常:Handling ClientRegistrationException error: No client with requested id: null
异常:Handling ClientRegistrationException error: No client with requested id: null解决方案:传递参数的时候 传client_id原创 2020-06-09 23:41:50 · 4550 阅读 · 0 评论 -
启动SpringBoot程序的时候报错Error creating bean with name bootstrapImportSelectorConfiguration
解决方案:添加下面的依赖进行解决。<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.2.RELEASE</version> <relativePath/></parent>..原创 2020-06-08 21:17:29 · 5391 阅读 · 2 评论 -
完美解决SpringBoot在后台接收前台传递对象方式
完美解决SpringBoot在后台接收前台传递对象方式问题描述前台传递对象,不管是通过ajax请求方式,还是axios请求方式。后台应该怎么接收对象处理呢?比如前台传递ajax方式:$.ajax({ url: "后台的方式", async: false, type: "POST", dataType : "json", data: JSON.stringify(formParamObj), contentType:'application/json;原创 2020-06-01 08:45:58 · 6281 阅读 · 0 评论 -
完美解决Failed to convert value of type java.lang.String to required type java.util.Date 报错
springboot在接收时间类型的时候,报Failed to convert value of type ‘java.lang.String’ to required type 'java.util.Date’的错误,应该怎么解决呢?错误翻译:首先上面的错误的意思是 前台传递 string类型的数据,后台使用Date类型去接收,但是报错了。解决之道:springboot要解决这个问题很简单,在接收的字段上面,添加下面的注解 就OK@JsonFormat(pattern=“yyyy-MM-dd原创 2020-05-31 08:31:36 · 107107 阅读 · 4 评论