macos升级14.4后idea运行java程序崩溃
发表于|更新于
|浏览量:
不去读书就没有真正的教养,同时也不可能有什么鉴别力。——赫尔芩
对应网址
https://bugs.java.com/bugdatabase/view_bug?bug_id=8327860
加点jvm参数试试能不能解决
开下日志
1 | -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=jvm.log |
禁用JIT编译器
1 | -Djava.compiler=NONE |
换个GC器试试
1 | -XX:+UseG1GC |
相关推荐
2024-05-03
spring提供的SQL工具类执行SQL脚本
方向是比速度更重要的追求。——白岩松 这里主要是用到了org.springframework.jdbc.datasource.init.ScriptUtils#executeSqlScript(java.sql.Connection, org.springframework.core.io.Resource)方法 例如 123456 @BeforeAllstatic void setup(@Autowired DataSource dataSource) throws Exception { JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); assertNotNull(jdbcTemplate.getDataSource()); ScriptUtils.executeSqlScript(jdbcTemplate.getDataSource().getConnection(), new ClassPathResource("init.sql"));}...
2021-08-31
unicode换行符
良好的教养在于隐藏我们对自己较佳的评价,以及隐藏我们对他人较差的评价——马克吐温 挺有趣的: 123String words = "哈哈";// \u000d words = "我丢";System.out.println(words); 以下语句输出 因为\u000d换行符被解析了
2020-12-23
@ModelAttribute
小人之过也必文。——《论语》 如果我们需要在controller执行前做一些事情,除了使用AOP外,我们还可以使用@ModelAttribute注解 被@ModelAttribute注解的方法会在controller执行前执行并把结果传递给了下面controller里我们注解的参数 实际开发中可以用来鉴权、过滤参数等 12345678910111213141516171819202122232425262728293031package com.ruben.controller;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.ModelAttribute;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;/** * @...
2023-09-30
feign-reactive
晚饭少吃口,活到九十九。——钱大昕 https://github.com/openfeign/feign 目前feign不支持webflux、reactive 于是找到了一个三方库 https://github.com/kptfh/feign-reactive 基于Spring WebFlux的Reactive Feign客户端 安装: 12345678910111213141516171819202122232425262728293031323334<repositories> <repository> <id>bintray-kptfh-feign-reactive</id> <name>bintray</name> <url>https://dl.bintray.com/kptfh/feign-reactive</url> </repository></repositories>...<d...
2022-05-10
连接流时如果是并行流
日出之美便在于它脱胎于最深的黑暗。——辛夷坞 代码: 1234System.out.println(Stream.concat(Stream.of(1), Stream.of(1)).isParallel()); // falseSystem.out.println(Stream.concat(Stream.of(1).parallel(), Stream.of(1)).isParallel()); // trueSystem.out.println(Stream.concat(Stream.of(1), Stream.of(1).parallel()).isParallel()); // trueSystem.out.println(Stream.concat(Stream.of(1).parallel(), Stream.of(1).parallel()).isParallel()); // true 结论:连接的两个流,只要其中有一个是并行流,最终的流则为并行流 顺...
2022-10-26
PersistJobDataAfterExecution注解
心地善良的人、富于幻想的人比冷酷残忍的人更容易聚合——约翰逊 quartz之前我们也聊过了,今天说下这个注解org.quartz.PersistJobDataAfterExecution 一般和DisallowConcurrentExecution搭配使用 PersistJobDataAfterExecution表示Job执行结束后更新JobDataMap DisallowConcurrentExecution表示不允许并发执行 12345678910111213141516171819202122232425262728293031@Slf4j@DisallowConcurrentExecution@PersistJobDataAfterExecutionpublic class SettlementJob implements Job { /** * <p> * Called by the <code>{@link Scheduler}</code> when a <code&g...

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog