idea 异常处理

1.  无效的源发行版,解决方案

   idea设置的jdk版本与自己项目的编译版本不匹配或者idea中的jdk没有设置。

    project Structure -> Modules -> 选择项目 -> 点击sources,更改 Language Level为对应的JDK版本

2. idea运行 springboot项目报错

Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration

有以下两种处理方式:

   1). 关闭idea在应用下搜索 .idea/workspace.xml

       在这个的内部<component name="PropertiesComponent"></component >

       添加<property name="dynamic.classpath" value="true" />

   2). 修改RUN/Debug选择下面这种。

     

原文地址:https://www.cnblogs.com/DennyZhao/p/11846007.html