Subject subject = SecurityUtils.getSubject();
UserInfo user = (UserInfo) subject.getPrincipal();
使用这两行代码时,报错
java.lang.ClassCastException: com.manage.domain.UserInfo cannot be cast to com.manage.domain.UserInfo
并且subject里是有值的并且各个字段都与实体类对应
也没有引入devtools包