Springboot(二十一)@Aspect 切面注解使用

       Spring AOP面向切面编程,能够用来配置事务、作日志、权限验证、在用户请求时作一些处理等等。用@Aspect作一个切面,就能够直接实现。html     1.首先定义一个切面类,加上@Component  @Aspect这两个注解   java @Component @Aspect public class LogAspect { private static fin
相关文章
相关标签/搜索