Home Not able to import @Secured annotation of spring security
Reply: 0

Not able to import @Secured annotation of spring security

user473
1#
user473 Published in April 19, 2018, 10:02 am

I have imported spring security plugin in build.gradle as "org.grails.plugins:spring-security-core:3.2.1". and i have initialized all user,role,userole classes and login screenalso appers but this @Secured annotation doesnot work.

TraineeController.groovy

class TrainingController {

    @Secured
    def index() {
        redirect(action:"create")
    }

    def create(){

    }
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.510645 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO