在使用ItellJ IDEA过程中遇见的问题以及解决方案

来源:互联网 发布:复杂网络特性 编辑:程序博客网 时间:2024/05/21 21:34
1.ItellJ导入项目出现

Error:(2, 0) Plugin with id 'jetty' not found.

open file

问题原因:itellj上没有配置 jetty插件。

解决方案:1>配置jetty插件

2>点击open file  找到配置jetty的地方在前面加 //  ,将jetty配置注释掉



2.ItellJ中spring项目上有许多@autowired/@Resource下面的注解注入 报错但不影响使用

Could not autowire,No beans of "xxx.service" type found 

checks autowiring problems in a bean class.

问题原因:因为创建项目的时候,都是先创建空项目再创建web moduele(你想直接创建web project也可以),一般不会使用spring组件。都是自己配置的。这时候你要是不小心手滑(手滑原因:因为idea对你spring的配置文件会在上方报警告,然后你一fix,就容易出事),那就会报错无法Autowired。所以你只要删掉你手滑添加的就可以

解决方案:打开项目结构,将WEB Gradle上面但Spring 全部delete


3.lambda expressions are not supported at this language level '1.4'


问题原因:语言等级与当前的不匹配。JDK版本不对

解决方案: 1>打开项目结构,找到project 的project language level选择8-Lambdas.然后找到modules 也要将project language level改成8-Lambdas







原创粉丝点击