![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
java路飞
生活不是攀爬高山也不是深潜海沟,而是在一张标配的床上睡出的你的身形。
展开
-
SpringBoot整合Elasticsearch7实战(一)
前言本文主要介绍java客户端SpringBoot整合Elasticsearch,参照Elasticsearch的官方文档,将一些基本的常见的API封装,供自己后面项目中es能够开箱即用。java客户端采用的RestHighLevelClient来实现es基础查询;官方文档:https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high.html中文文档:https://www.kai原创 2020-12-18 15:51:30 · 664 阅读 · 0 评论 -
springboot启动报错com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
一般报这个错就是springboot数据库连接配置参数的问题;以下这几项参数一定要检查没问题;后面的报错可能会出现下面这种报错;这种原因是mysql的ssl连接问题,5.6以上默认useSSL=true也就是需要证书的方式连接;Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException: NotBefore: Tue Jul 14 19:38:12 CST原创 2020-07-14 18:06:04 · 1681 阅读 · 0 评论 -
idea+springboot启动报错 ERROR org.apache.catalina.core.ContainerBase
用idea导入了一个spring-boot的项目,结果启动报错,ERROR org.apache.catalina.core.ContainerBase - A child container failed during start tomcat启动失败。好一顿找,原来是不小心引入了javaee6这个lib包,springboot自带tomcat的,可能是导致了冲突。解决方案如下:将java...原创 2020-03-24 18:13:21 · 9023 阅读 · 5 评论 -
spring boot 2.x静态资源会被拦截器拦截的解决方法
SpringBoot2.x拦截器的写法:自定义拦截器继承HandlerInterceptorAdapterimport org.springframework.stereotype.Component;import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;import javax.servl...原创 2020-03-08 18:30:16 · 670 阅读 · 0 评论