druid连接泄露故障分析

1、问题的如何发生的 1.1、应用功能介绍 系统是一个双数据源双写单独的服务。(两个数据源是不同的存储,所以无法使用主从复制的模式,是一个切换存储介质的过渡态)。 历……

阅读全文

freemarker 使用记录

1、Long类型显示带逗号 如 id=1,234; 解决的方案是,增加配置 number_format: ‘#’ spring: profiles: active: '@profileActive@' application: name: blog-web freemarker: allow-request-override: false allow-session-override: false cache: false charset: UTF-8 check-template-location: true content-type: text/html enabled: true expose-request-attributes: false expose-session-attributes: false expose-spring-macro-helpers: true prefer-file-system-access: true suffix: .ftl template-loader-path: classpath:/templates/ settings: template_update_delay: 0 default_encoding: UTF-8 classic_compatible: true number_format: '#' 2、boolean……

阅读全文

GC调优参数

原文地址: https://juejin.im/post/5c94a123f265da610916081f。 JVM 配置常用参数 堆参数; 回收器参数; 项目中常用配置; 常用……

阅读全文

idea jvm调优

1、背景 idea作为一个高频使用的java IDE。性能的好坏,影响着开发的心情。工欲善其事必先利其器。 2、优化后的参数 优化后的感觉是拙匠常怪工具差。明明可以流畅……

阅读全文

idea代码模板如何设置

1、模板分类 File and Code template 文件级别的模板 Live template 方法或代码块级别的模板 2、File and Code template /** * @description TODO * @date ${YEAR}-${MONTH}-${DAY} ${TIME} * @author chen xing */ 其中${DATE}的样式是 2021/07/28,这里使用……

阅读全文

idea快捷键

Ctrl 快捷键 介绍 Ctrl + F 在当前文件进行文本查找 (必备) Ctrl + R 在当前文件进行文本替换 (必备) Ctrl + Z 撤销 (必备) Ctrl + Y 删除光标所在行 或 删除选中的行 (必备) Ctrl + X 剪切光标所……

阅读全文