![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
scanklm
没有不可治愈的伤痛,没有不能结束的沉沦,所有失去的,会以另一种方式归来。——肖尔斯
展开
-
SpringCloud + Feign + MultipartFile 上传文件
SpringCloud + Feign + MultipartFile 上传文件原创 2022-06-15 14:52:29 · 9548 阅读 · 0 评论 -
springboot + websocket 服务端接收消息 & 主动发送消息
一、引入maven配置: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 二、config配置:import org.springframewor原创 2021-05-17 16:43:45 · 4574 阅读 · 0 评论 -
解决服务器 Docker + Nacos + FeignClient 调用不通
背景: 项目框架采用 SpringBoot + Nacos, 模块之间调用采用FeignClient,服务通过Docker部署;问题: 服务通过Docker部署成功后,本地连接服务器Nacos注册中心模块之间相互调用没有问题,但服务器上各docker之间通过feignClient调用超时报错;项目nacos配置如下:spring: cloud: nacos: config: server-addr: ${CONFIG_NACOS_...原创 2021-01-30 12:03:15 · 4793 阅读 · 1 评论 -
Spring - 获取Bean工具类
import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;import org.springframework.stereotype.Component;@Componentpublic class GetBeanUtil implements ApplicationContextAware { private stat.原创 2020-12-17 11:57:39 · 140 阅读 · 0 评论 -
SpringBoot系列:开启远程Debug
1、linux服务器启动springboot 项目jar包时使用如下指令:java-Xdebug-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=18888-Xmx2048M-jarxxx.jar其中 address=18888为debug模式监听端口 -Xmx2048M 视实际情况配置...原创 2018-08-29 15:13:54 · 3045 阅读 · 0 评论 -
springboot 2.2.0版本整合 Kafka 版本对应问题
所有版本配套详情参见:https://spring.io/projects/spring-kafka项目中使用的为2.2.0版本 springboot,对应Kafka配套版本参见下图; <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.原创 2020-05-27 20:04:37 · 6631 阅读 · 0 评论 -
springboot2.2 集成redis哨兵
springboot版本2.2.0.RELEASEjedis版本 3.1.0一、pom依赖: <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.1.0</version> </dependency> <dependency> ...原创 2020-06-29 15:10:31 · 933 阅读 · 0 评论 -
springboot 2.0.0 配置支持跨域
import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;@Configurationpublic class GlobalCor.原创 2020-07-17 11:18:38 · 181 阅读 · 0 评论