PHPz2017-04-18 10:45:16
If I remember correctly, the @annotation expression will only look for annotations on methods. Have you tried customizing an annotation on the method?
ringa_lee2017-04-18 10:45:16
The annotations on the method can implement the spring
的 HandlerMethodArgumentResolver
interface.
You can refer to customizing @CurrentUser to get the current logged in user