使用Mac idea创建SpringBoot工程,创建成功后启动时报错objc[631]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java (0x108ada4c0) and
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108bb64e0). One of the two will
be used. Which one is undefined。
查看stack overflow及 csdn相关文章,出现原因是:Mac上java中的一个bug,但并不影响正常的编码工作,解决此问题的方案如下:
解决方法:在idea中,进入 Help > Edit Custom Properties...,修改Idea.properties,添加以下内容:
# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true