摘要:
一,查看jdk默认使用的gc [lhdop@blog ~]$ java -XX:+PrintCommandLineFlags -version -XX:ConcGCThreads=1 -XX:G1ConcRefinementThreads=4 -XX:GCDrainStackTargetSize=6 阅读全文
posted @ 2022-03-19 11:23
刘宏缔的架构森林
阅读(1531)
评论(0)
推荐(0)
摘要:
一,gc log配置参数: -Xlog:gc 打开gc简略日志 -Xlog:gc* 打开gc详细日志 -Xlog:gc*:filename 或者 -Xlog:gc*:file=filename 日志输出到filename指定的文件 time:开启日期显示 filecount=10 历史轮询文件数量1 阅读全文
posted @ 2022-03-19 10:57
刘宏缔的架构森林
阅读(855)
评论(0)
推荐(0)
摘要:
一,配置文件: application.yml #profile #database spring: profiles: active: cron 说明:指定profile为cron, 如果项目在多台机器上部署时, 只有指定为cron时定时任务才生效 说明:刘宏缔的架构森林是一个专注架构的博客, 网 阅读全文
posted @ 2022-03-19 10:22
刘宏缔的架构森林
阅读(313)
评论(0)
推荐(0)
摘要:
一,第一种情况:配置文件放在jar内部 1,如图: 如图所示,配置文件放在resources目录下即可 2,开发时指定要使用哪个配置文件? 默认启动: 在application.yml中(此文件中保存通用的配置) #profile spring: profiles: active: dev 说明:此 阅读全文
posted @ 2022-03-19 09:27
刘宏缔的架构森林
阅读(1070)
评论(0)
推荐(0)
浙公网安备 33010602011771号