---
title: "spring拦截器的例子"
author: "hotjava"
date: "2007-09-13T09:45:31Z"
tags: []
slug: "spring"
draft: false
lastmod: "2007-09-13T09:45:31Z"
id: 123475
url: "https://hotjava.iteye.com/blog/123475"
---

[http://blog.csdn.net/fhway/archive/2006/10/05/1321769.aspx](http://blog.csdn.net/fhway/archive/2006/10/05/1321769.aspx)

可以用拦截器来计算程序的执行效率，统计每个方法开始和结束的时间差，虽然有可能不太准确，但也能找到究竟程序中哪个方法最耗时。