更新时间:2023-09-07 17:05:28
我使用的是 0.5.1,以下对我有用:
I'm using 0.5.1 and the following works for me:
class EventController {
def authenticateService
def list = {
def user = authenticateService.principal()
def username = user?.getUsername()
.....
.....
}
}