标签:uid let 页面 alibaba servlet 操作 alt 压缩 name
druid 提供了一个web端的监控页面, 搭建起来不算麻烦, 建议添加.
<filter>
<filter-name>DruidWebStatFilter</filter-name>
<filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
<init-param>
<param-name>exclusions</param-name>
<param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*,/rs/*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>DruidWebStatFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>DruidStatView</servlet-name>
<servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DruidStatView</servlet-name>
<url-pattern>/druid/*</url-pattern>
</servlet-mapping>
查看web统计信息
http://127.0.0.1:8080/nutzbook/druid/webapp.html
查询数据库操作的统计信息
http://127.0.0.1:8080/nutzbook/druid/sql.html
标签:uid let 页面 alibaba servlet 操作 alt 压缩 name
原文地址:http://www.cnblogs.com/telwanggs/p/7484701.html