1. 问题由于业务拓展 公司项目迭代到Eureka分布式集群 以应对更多的吞吐量由于节点得向注册中心声明自己的host,每个节点的yml配置文件都不一样 打包发布起来比较麻烦需要一个一劳永逸的方案2. 解决方案2.1 SpringBoot配置文件读取优先级启动参数 -Dspring.config.location=xxxJar包同级目录的config目录Jar包同级目录classPath(即...
1. 问题前一阵子遇到的问题 突然想起来没有写笔记 先记录下来SpringBoot中使用 @ConfigurationProperties 注入对象 普通方法调用可以 在静态方法中调用的时候读取不到参数@Component @ConfigurationProperties(prefix = "constants.ftp") public class FtpConfig ...
1. 问题描述公司原项目单一架构无法承载突增的用户量所以将架构改为分布式然后遇到的问题是WebSocket患者与医生聊天功能受到影响,如果患者与医生连接的socket节点不为同一个 那么他们不能实时收到对方的消息最初的解决方案是通过Redis存储因为 "WebSocket Session是不能够被序列化的,java.io.NotSerializableException" 的原因 此方案无法...
Itext7 API总结分辨率大部分情况下,生成的pdf是有打印需求的,打印就涉及到pdf分辨率的问题。在itext中除了插入的图片外其他都是矢量图所以不必担心分辨率的问题,只需要保证插入图片的分辨率即可,在itext中生成图片的分辨率默认是72dpi,这里是需要做一些处理的,如下:int defaultDpi = 72; int targetDpi = 300; Image test = ...
1. 原因与问题1.1 原因日常开发中有时候需要将某个对象集合的某个属性提取出来作为一个新的集合使用, 所以记录下来1.2 描述现在有一个叫 companyEmployeeList 集合 我们需要将里面的 employeeId 提取出来作为一个新的集合List<CompanyEmployee> companyEmployeeList = companyEmployeeMapper...
1. 配置yml文件server: port: 8206 # 启用压缩配置 compression: # 是否启用 enabled: true # 配置压缩类型 mime-types: application/json,application/xml,text/xml,text/plain,text/html feign: httpcli...
import com.fasterxml.jackson.annotation.JsonIgnore; /** * 密码 */ @JsonIgnore private String password;
1. 代码<div id="output" style="width: 100%;height: 100%; display: none;"> <div id="crumbs" style="width: 100%;height: 20px;"></div> &...
1. 安装growpart工具和resize2fs工具yum install cloud-utils-growpart & yum install xfsprogs2. 检查磁盘属性2.1 fdisk -l 命令[root@scaleweb001 ~]# fdisk -l 磁盘 /dev/vda:107.4 GB, 107374182400 字节,209715200 个扇区 Uni...
1. 问题描述在PowerShell窗口下执行maven打包命令,并跳过单元测试mvn clean package -Dmaven.test.skip=true[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ---------...