bug收集

不想规范格式,好困想睡觉,没写原因,以后有机会慢慢补充(我猜没机会)
欢迎补充解决方法

  1. Request method 'POST' not supported
    解决:错误的适用POST去请求GET一类的方法;
    查看controller,@RequestBody使用post,@RequestParam使用GET

  2. java.lang.IllegalStateException: Failed to execute CommandLineRunner
    解决:需要implements ApplicationRunner

  3. spring cloud报错com.netflix.client.ClientException: Load balancer does not have available server for client:
    解决:
    看一下注册中心微服务的名称:spring-application-name:
    添加
    eureka-client:
    registerWithEureka: true #是否向服务注册中心注册自己
    fetch-registry: true #添加这句

  4. spring-boot 整合redis报错:Caused by: java.lang.NoClassDefFoundError: redis/clients/util/SafeEncoder
    解决:降低版本

    redis.clients
    jedis
    2.9.0

  5. controller 接收参数intger为0时,mybatis sql查询无法判断是否为空
    解决:intger为0就相当于null

  6. spring boot redis报错:org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
    解决:redis需要密码

  7. Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
    解决:jdbl增加属性useSSL=false

  8. Spring Boot 报错:Could not transfer artifact (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
    解决: jdk使用1.8版本

转载于:https://www.cnblogs.com/lvdandan/p/11595080.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值