springboot No Java compiler available for configuration options compilerClassName: [null] and compil

今天使用eclipse创建springboot整合jsp出现一个问题,在idea中并没有遇到这个问题。最后发现是需要在eclipse中添加一个eclipse依赖,依赖如下:

<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.6.1</version>
<scope>provided</scope>
</dependency>
添加该依赖后问题解决。

错误提示如下:

java.lang.IllegalStateException: No Java compiler available for configuration options compilerClassName: [null] and compiler: [null]

原文地址:https://www.cnblogs.com/ming-blogs/p/10283756.html