IntelliJ IDEA部署项目常见问题总结原因及解决方法(持续更新……)

1.编译问题描述:

Error:(4, 25) java: 找不到符号符号:类 xxx位置:程序包 xxx.xxx

现象:springboot idea out文件夹编译不出class

原因:具说是标识这个类不会在工程编译的时候进行编译



定位:IDEA类文件出现小叉号

解决:ctrl+alt+s打开Settings设置查找excludes,(或File->Settings->builde,Excution,Deployment->compiler->excludes),在右侧的Path中选中文件,删除,即可解决。

2.插件问题:

Idea关于Lombok的一些问题( java: 找不到符号 符号)

解决:https://blog.csdn.net/qq_31840023/article/details/89322418


3.spring注解问题

@Autowired注解报错解决方案

解决:https://blog.csdn.net/qq_33886821/article/details/80168552

打开file-settings或者ctrl+alt+s -> Editor

然后在Inspections 点击搜索栏 输入Spring Core

在Spring Core -> Code -> Autowring for Bean Class中将Severity的级别由之前的error改成warning。

4.启动报Command line is too long问题

报错内容:

Error running 'ServiceStarter': Command line is too long. Shorten command line for ServiceStarter or also for Application default configuration.

解决办法:

修改项目下 .idea\workspace.xml,找到标签 <component name="PropertiesComponent"> , 在标签里

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。