Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to save currently logged in user username in domain class?
- def springSecurityService // will be injected by DI
- ... in controller method,
- def currentUsername = new MyDomainClassWithUsername(springSecurityService.currentUser.username)
- currentUsername.save()
Add Comment
Please, Sign In to add comment