Eclipse和Kotlin支持

时间:2018-06-26 10:35:30

标签: java spring eclipse kotlin

我正在尝试在Spring boot中运行用Kotlin编写的STS程序,但是当我在IDE内构建项目时,它对我不起作用此错误:

An internal error occurred during: "Kotlin Analysis".
Wrong annotation argument: public @interface org.springframework.context.annotation.ComponentScans
    extends java.lang.Object
    implements : java.lang.annotation.Annotation
/*   methods   */
[unresolved] public abstract org.springframework.context.annotation.ComponentScan[] value() 

有人遇到这个问题吗?我正在运行两者的最新版本。

如果我通过命令行进行构建,则可以正常运行,因此显然是一个IDE问题。

更新(2018年9月): 我一直在为eclipse更新插件,但我再也听不到错误了,但是我仍然无法运行由Kotlin完全完成的spring boot项目,它一直显示Error: Could not find or load main class fooKT在哪里,如果我从命令行运行该项目,它可以正常工作,因此很明显,这个问题与Eclipse有关。

0 个答案:

没有答案