![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 62
LazyTing
这个作者很懒,什么都没留下…
展开
-
记一次在项目中遇到rabbitmq无法设置端口
一般springboot中集成rabbitmq使用的是通过properties或者是yml配置文件进行地址等信息的配置当然也有这种通过手写配置对象来进行配置的好处呢:第一种:简单方便,只要按照规定的格式写,就一定不会出错第二种:1,可以选择不同的实现类型2,可以将用户名密码等关键信息进行加密后放入数据库或者是配置文件,使用的时候再解密在本次项目中,使用的是第二种方案,但是遇到了设置端口号不生效的问题设置端口5678但是在底层代码中拿到的还是5672(默原创 2021-09-17 12:40:38 · 795 阅读 · 1 评论 -
springboot gateway 项目报org.springframework.http.codec.ServerCodecConfigurer
Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' in your configuration.原创 2021-05-14 13:59:05 · 1894 阅读 · 2 评论 -
记一次springboot2.4.3集成elasticsearch7.11.2版本
记一次springboot2.4.3集成elasticsearch7.11.2版本java.lang.NoClassDefFoundError: org/elasticsearch/action/admin/cluster/snapshots/clone/CloneSnapshotRequest原创 2021-03-18 10:39:15 · 1034 阅读 · 0 评论 -
记录 linux 启动 springboot 命令
把包通过ftp上传到linux服务器上1,java -jar xxx.jar2,原创 2020-06-01 10:55:53 · 598 阅读 · 0 评论 -
spring boot admin 服务端动态获取 actuator端点
服务端增加代码:2019-10-22更新:不过这么貌似是获取的服务端自身的信息,这就很尴尬了……@Componentpublic class CpuMetricsEvent { @Autowired private MeterRegistry meterRegistry; private String metricsType = ""; publi...原创 2019-10-18 17:54:34 · 322 阅读 · 0 评论 -
springboot 拦截器 记录前后端交互日志
/**建类继承HttpServletRequestWrapper */import java.io.BufferedReader;import java.io.ByteArrayInputStream;import java.io.IOException;import java.io.InputStreamReader;import javax.servlet.ReadListene...原创 2019-09-05 17:43:33 · 798 阅读 · 0 评论 -
springboot mail 异常记录(项目)
mail: host: smtp.aliyun.com username: password: port: 25 protocol: smtp default-encoding: UTF-8以上本地Windows环境测试发送邮件正常,大约在3s能收到邮件Mail server connection failed; nested exception is...原创 2019-09-24 17:34:27 · 1087 阅读 · 0 评论