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

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

也可以通过session来获取:

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

整体思路:

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