bug collection

I do not want to canonical format, so sleepy want to sleep, I did not write the reason, have the opportunity to slowly supplement (I guess no chance)
please add solution

  1. Request method 'POST' not supported
    Solution: POST errors applicable to a class method GET request;
    see the controller, @ RequestBody use post, @ RequestParam use GET

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

  3. spring cloud error com.netflix.client.ClientException: Load balancer does not have available server for client:
    Solution:
    look at the micro-name registry services: spring-application-name:
    Add
    Eureka-Client:
    registerWithEureka: # to true whether the service registration center to register their
    fetch-registry: true # Add phrase

  4. spring-boot integration redis error: Caused by: java.lang.NoClassDefFoundError: redis / clients / util / SafeEncoder
    solve: lower version

    redis.clients
    jedis
    2.9.0

  5. When the controller receives parameters intger is 0, mybatis sql query can not determine whether the air
    resolved: intger 0 is equivalent to 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 error: Could not transfer artifact (https://repo.maven.apache.org/maven2) : Received fatal alert: protocol_version -> [Help 1]
    resolve: jdk use version 1.8

Guess you like

Origin www.cnblogs.com/lvdandan/p/11595080.html