Spring AOP日志实现(三)--获取访问者用户名

通过Security获取访问者用户名:

也可以通过session来获取:

整体思路:

原文地址:https://www.cnblogs.com/niwotaxuexiba/p/10848432.html