- 阿里巴巴开发手册中禁用static修饰SimpleDateFormat。
https://juejin.cn/post/6844903939402383368 - 为什么SimpleDateFormat要放到ThreadLocal里?
https://blog.csdn.net/w67995822/article/details/119348796 - MySQL数据库存储json字段时,在用fastjson.toJsonString()方法时,需要禁用循环引用检测,方式如下:
JSON.toJSONString(dto, SerializerFeature.DisableCircularReferenceDetect)
- idea 突然debug模式启动很慢,提示 Method breakpoints may dramatically slow down debugging
https://blog.csdn.net/Caster_Saber/article/details/82632332 - fastjson转换json时,碰到的那些首字母大小写转换的坑!
https://www.jianshu.com/p/4ea57f64d461 - ServletContext、HttpSession、HttpServletRequest接口的对比
https://blog.csdn.net/hcz666/article/details/108916119 - JAVA密码输入错误3次,锁定账号30分钟简单实现(不操作数据库)
https://blog.csdn.net/Man20161217/article/details/87812628 - @Value你会用吗?
1.最好设置默认值,如@Vlaue(${user.address:beijing})
2.如果给静态变量注入系统属性,可以加给静态变量加setter方法,在方法上添加@Value注解
https://blog.csdn.net/Xumuyang_/article/details/120997922 - Mybatis 的 collection标签
用来应对表关系一对多的情况,如菜单对象有子菜单数组,在查询时可以用collection标签对应这个数组,这种查询是递归的。
https://blog.csdn.net/lzxomg/article/details/89739651
可用于查询前端需要的树形结构,还可以用遍历来做:https://www.jianshu.com/p/86755654ced9 - es 文件管理 临时
https://www.cnblogs.com/strongchenyu/p/13777596.html - Springboot:上传文件大小超出限制如何捕获异常
https://blog.csdn.net/daweozai/article/details/103575718 - minio文档
https://minio-java.min.io/io/minio/MinioClient.html - 用Java来获取访问者真实的IP地址
https://blog.csdn.net/qq_36411874/article/details/79938439 - shell脚本中dirname的使用:让脚本在任何地方都可以调用,获取改脚本自身的路径
https://blog.csdn.net/evglow/article/details/106260462 - elasticsearch的内存查询、设置
查询:ps -ef | grep elastic
root@xy1:/home/xy1/es/elasticsearch-7.6.1/bin# ps -ef | grep elastic
xy1 406 1 1 9月13 ? 06:46:24 /home/xy1/es/elasticsearch-7.6.1/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.locale.providers=COMPAT -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=/tmp/elasticsearch-11869143125944407879 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data -XX:ErrorFile=logs/hs_err_pid%p.log -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m -XX:MaxDirectMemorySize=536870912 -Des.path.home=/home/xy1/es/elasticsearch-7.6.1 -Des.path.conf=/home/xy1/es/elasticsearch-7.6.1/config -Des.distribution.flavor=default -Des.distribution.type=tar -Des.bundled_jdk=true -cp /home/xy1/es/elasticsearch-7.6.1/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
其中,-Xms1g -Xmx1g 表示堆内存大小。
设置大小:es内核使用lucene,lucene本身是单独占用内存的,并且占用的还不少,官方建议设置es内存,大小为物理内存的一半,剩下的一半留给lucene。
- 关于单例模式,volatile关键字作用,指令重排
https://blog.csdn.net/qq_47908816/article/details/128621430
https://www.cnblogs.com/monkeysayhi/p/7654460.html - SpringBoot集成Flowable工作流引擎
https://mp.weixin.qq.com/s/hXS9HirRnhYRMIwd4GVeIQ
https://github.com/chengxy-nds/Springboot-Notebook/tree/master/springboot101/%E5%B7%A5%E4%BD%9C%E6%B5%81/springboot-work-flowable