shiro comment does not take effect

When springboot integrated shiro, use @RequiresRoles annotation does not take effect.
shiro @RequiresRoles springaop underlying technology used:
1. @ RequiresRoles modified service layer interface (Interface Agent)
The package is not effective for an introduction aspectj:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
</dependency>

2. @ RequiresRoles modified controller layer interface (class of agents)
such as do not take effect, check whether this method calls the controller layer.
Aop by the use of dynamic agent technology can not be used to call this method directly. Available proxy object dynamically generated at runtime by getBean.
So now, the next record. To the point of time you brothers and province. .

Guess you like

Origin www.cnblogs.com/tswhq/p/11622745.html