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

       Spring AOP面向切面編程,能夠用來配置事務、作日誌、權限驗證、在用戶請求時作一些處理等等。用@Aspect作一個切面,就能夠直接實現。html     1.首先定義一個切面類,加上@Component  @Aspect這兩個註解   java @Component @Aspect public class LogAspect { private static fin
相關文章
相關標籤/搜索