如下修改代码:
RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();
RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
如下修改代码:
RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();
RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
转载于:https://my.oschina.net/aijiaoer0624/blog/3082778