Subject subject = SecurityUtils.getSubject(); if (subject != null) { Sys_user user = (Sys_user) subject.getPrincipal();
....