I'm following this tutorial https://grails-plugins.github.io/grails-spring-security-core/guide/tutorials.html, but @Secured annotation cannot be resolved, though I applied Spring Security plugin and compiled.
import grails.plugin.springsecurity.annotation.Secured
class SecureController {
@Secured('ROLE_ADMIN')
def index() {
render 'Secure access only'
}
}