今天使用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]