方法访问统计组件
本软件用于记录,分析访问接口日志,让我们了解接品的访问次数,以优化接口.
操作说明:
1.在pom.xml里添加依赖
<dependency> <groupId>net.highersoft</groupId> <artifactId>methodstatis</artifactId> <version>1.2.0</version> </dependency>
2.在web.xml里配置
<servlet> <servlet-name>methodstatis</servlet-name> <servlet-class>net.highersoft.mstats.servlet.ResourceServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>methodstatis</servlet-name> <url-pattern>/methodstatis/*</url-pattern> </servlet-mapping> <filter> <filter-name>urlFilter</filter-name> <filter-class>net.highersoft.mstats.filter.UrlFilter</filter-class> </filter> <filter-mapping> <filter-name>urlFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
3.访问http://yoursite/methodstatis/index.html
业务日志记录组件