我正在使用Grails 3.1.9和IntellJ 2017,
我要使用插件:
compile "org.grails.plugins:action-logging:1.1.1"
我正确下载了。我将其添加到 Controller 中,如手册所述:
package com.test
import org.mirzsoft.grails.actionlogging.annotation.*
class TestController {
@ActionLogging
@SpringUserIdentification
def index() {
}
}
}
我在下载的软件包中看到了它,但是一旦尝试编译,就会收到以下消息:
: 34: unable to resolve class ActionLogging , unable to find class for annotation
@ line 34, column 5.
@ActionLogging
据我所知,注释是导入的。
有什么线索吗?
谢谢
最佳答案
该插件尚未更新以支持Grails 3-您可以在http://plugins.grails.org/上找到Grails 3插件-您可以尝试自己更新插件或打开问题,并询问作者是否计划对其进行更新以支持Grails 3。
来源在https://github.com/erickmorales3/action-logging
关于java - 解决类ActionLogging,无法找到用于注释的类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46139727/