spring
meepoGuan
不积跬步,无以至千里;不积小流,无以成江海。
展开
-
springboot中用注解配置过滤器并配置多个过滤路径
@WebFilter(filterName="TestFilter",urlPatterns={"/test/index","/test/home"})public class TestFilter implements Filter { public TestFilter() { } public void destroy() { } public void do...原创 2017-06-17 09:46:32 · 16523 阅读 · 4 评论 -
StopWatch工具类
StopWatch工具类介绍stopwatch是org.springframework.util中的一个秒表计时工具类,可以帮我们实现任务的计时,并且允许计时多任务,比起我们用System.currentTimeMillis()记录开始结束,然后再计算时间要方便一些。使用stopwatch的使用还是很简单的,可以直接进入org.springframework.util.StopWatch下查...原创 2019-01-23 09:28:53 · 539 阅读 · 0 评论