@Autowired
private UserService userService;
@RequestMapping("testAOP")
@Log(operationType="add操作:",operationName="添加用户")
public void testAOP(String userName,String password){
userService.addUser(userName, password);
}
}
下面编写测试类