更新时间:2023-09-07 17:05:34
我正在使用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()
.....
.....
}
}