
日常错误
# Never Give up &
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
解决springBoot项目集成log4j时和logback冲突的问题
错误信息 SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/maven_repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/m原创 2021-07-28 14:15:29 · 1273 阅读 · 0 评论 -
java.sql.SQLException: Failed to fetch schema of pms_spu_info_desc
无法获取pms_spu_info_desc的架构 错误原因: 项目中使用了seata来管理事务,但是在pms_spu_info_desc数据库表中没有设置主键 解决方法: 为对应的数据库表设置主键 ...原创 2020-01-08 16:28:22 · 2143 阅读 · 4 评论 -
feign.FeignException$Unauthorized: status 401 reading GmallSmsClient#saveSkuSaleInfo(SkuSaleVo)
错误原因 没有访问saveSkuSaleInfo(SkuSaleVo)的权限 使用了Security控制权限,访问时身份验证没有通过 修改 在被访问的微服务中添加SecurityConfig 配置 @Configuration public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override ...原创 2020-01-06 20:21:09 · 3823 阅读 · 0 评论 -
unable to read askpass response from 'C:\Users\..\..\intellij-git-askpass.bat' could read name from
出现这个错是因为你的git配置错误,然后导致push到远程github一直失败报错 修改.git的配置文件 $ vim .git/config 修改remote.origin.url变量为 https://[userName]:[password]@github.com/[username]/project.git ...原创 2019-12-18 10:20:13 · 715 阅读 · 0 评论 -
git pull 提示拉取成功,但本地代码却没有发生改变
由于本地的更改所以没有拉取成功 解决方法: 执行git stash 将本地修改储存起来, 然后再Git pull 就可以了原创 2019-12-05 11:54:51 · 10027 阅读 · 0 评论 -
nginx无法启动: libpcre.so.1/libpcre.so.0: cannot open shared object file
解决方法: ln -s /usr/local/lib/libpcre.so.1 /lib64 32位系统则: ln -s /usr/local/lib/libpcre.so.1 /lib原创 2019-12-03 20:54:23 · 224 阅读 · 0 评论 -
Method has too many Body parameters: login(java.lang.String,java.lang.String)
方法有太多的参数 解决办法:给参数加上@RequestParam注解 例如: public void login(@RequestParam("loginAcct") String loginAcct,@RequestParam("passwd") String passwd){ }原创 2019-11-29 20:10:29 · 472 阅读 · 0 评论 -
swagger——在Eureka中注册的实例点击跳转报错
在application.yml中加入 eureka: instance: hostname: localhost status-page-url: http://localhost:${server.port}/swagger-ui.html 错误原因: 默认的URL中是这样:http://192.168.137.1:9001/actuator/info 我们需要的是:...原创 2019-11-28 11:21:59 · 466 阅读 · 0 评论 -
支付宝支付沙箱测试时遇到的appid无效错误
之前在测试沙箱支付时出现了AppID无效的情况,后来发现是支付宝网关gatewayUrl填错了 正式上线网关:https://openapi.alipay.com/gateway.do 沙箱测试网关:https://openapi.alipaydev.com/gateway.do ...原创 2019-11-28 10:17:35 · 902 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): mapper.TMemberMappe
没找到mapper.xml 在application.yml文件中加入 mybatis: mapper-locations: classpath:/mybatis/mapper/*.xml原创 2019-11-26 20:15:35 · 152 阅读 · 0 评论 -
Maven3.5版本,执行site命令报错:java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentCo
[WARNING] Error injecting: org.apache.maven.report.projectinfo.CiManagementReport java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent 增加插件配置: <build> <pluginM...原创 2019-11-11 18:55:26 · 4236 阅读 · 0 评论 -
创建springboot项目时pom.xml报错
在pom.xml中加入以下内容即可 <properties> <maven-jar-plugin.version>2.6</maven-jar-plugin.version> </properties>原创 2019-11-24 13:52:31 · 820 阅读 · 0 评论 -
Unable to infer base url. This is common when using dynamic servlet registration or when the API is
Swagger-UI 提示Unable to infer base url 版本问题:2.8以后的版本很容易出现这类问题。 解决方法:在主类Application中加入@EnableSwagger2注解原创 2019-11-27 19:27:32 · 635 阅读 · 0 评论