⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 securityhandler.java

📁 java web开发中spring aop技术的应用。教你如何利用此技术
💻 JAVA
字号:
package com.bjsxt.spring;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;


@Aspect
public class SecurityHandler {
 
	@Pointcut("execution(* add*(..))||execution(* del*(..))")
	private void allMethod(){};
	
	@Before("allMethod()")
	private void checkSecurity() {
		System.out.println("----------checkSecurity()---------------");
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -