不想规范格式,好困想睡觉,没写原因,以后有机会慢慢补充(我猜没机会)
欢迎补充解决方法Request method 'POST' not supported
解决:错误的适用POST去请求GET一类的方法; 查看controller,@RequestBody使用post,@RequestParam使用GETjava.lang.IllegalStateException: Failed to execute CommandLineRunner
解决:需要implements ApplicationRunnerspring cloud报错com.netflix.client.ClientException: Load balancer does not have available server for client:
解决: 看一下注册中心微服务的名称:spring-application-name: 添加 eureka-client: registerWithEureka: true #是否向服务注册中心注册自己 fetch-registry: true #添加这句spring-boot 整合redis报错:Caused by: java.lang.NoClassDefFoundError: redis/clients/util/SafeEncoder
解决:降低版本redis.clientsjedis2.9.0controller 接收参数intger为0时,mybatis sql查询无法判断是否为空
解决:intger为0就相当于nullspring boot redis报错:org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
解决:redis需要密码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=falseSpring Boot 报错:Could not transfer artifact (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
解决: jdk使用1.8版本