һ - רҵ·ĵϷƽ̨

Spring MVC AOP通过注解方式拦截Controller等实现日志管?- 百度文库

Դû ʱ䣺2025/7/1 13:10:29 loading ƪĵֻ
˵ݽԤݿܲȫҪĵҪݣwordʹáword΢ź:xxxxxxxQQxxxxxx ܸṩĵл֧½⡣

עҲдˣspringҲúˣcontrollerôأ

ControllerӦ

package com.jiankunking.controller;

import com.jiankunking.common.OperationLogger; import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;

@Controller

@RequestMapping(value = \public class WelcomeController {

@OperationLogger(modelName = \ @RequestMapping(value = \ public void getWelcome() {

//쳣ز //int i = 9 / 0;

System.out.println(\ִУ\ } }

βأ

ǰ˷ajaxcontroller:

$.ajax({

type: \

url: \ contentType: \ data: null,

success: function () {

// alert(\ },

error: function () {

// alert(\ʧܣ\ } });

Ч£

Spring MVC AOP通过注解方式拦截Controller等实现日志管?- 百度文库.doc ĵWordĵصԣ㸴ơ༭ղغʹӡ
Ƽ
Copyright © 2012-2023 һ Ȩ | ϵ
:վز֪ʶȨݡϢ紫ȨתصƷַȨ,һ֪ͨǣǻἰʱɾ
ͷQQxxxxxx 䣺xxxxxx@qq.com
ICP2023013149
Top