Spring5 + Kotlin配置文件

 

 


 我在Kotlin类上面加了 @Controller注解
@Controller
open class HomeController : BaseController() {

open fun helloWorld() {
println("111111111")
}
}
出现以下错误代码
2018-04-15 16:11:39,663 ERROR [org.springframework.web.servlet.DispatcherServlet] -Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController' defined in file [C:\project\idea\javamg-master\target\javamg\WEB-INF\classes\com\thinkgem\javamg\modules\cms\web\HomeController.class]: Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: kotlin/reflect/full/KClasses
2018-04-15 16:11:39,661 WARN [springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController' defined in file [C:\project\idea\javamg-master\target\javamg\WEB-INF\classes\com\thinkgem\javamg\modules\cms\web\HomeController.class]: Unexpected exception during bean creation; nested exception is java.lang.NoClassDefFoundError: kotlin/reflect/full/KClasses
已邀请:

要回复问题请先登录注册