【SpringBoot】启动报错:objc[631]: Class JavaLaunchHelper is implemented in both

使用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

发布了168 篇原创文章 · 获赞 0 · 访问量 7837

猜你喜欢

转载自blog.csdn.net/weixin_42661815/article/details/100690801