首页>代码>SpringBoot+mybatis+Druid+Maven实现restful风格项目实例>/wxzyb/src/main/java/com/wxzyb/druid/DruidStatViewServlet.java
package com.wxzyb.druid;

import com.alibaba.druid.support.http.StatViewServlet;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;
/**
 * StatViewServlet
 *
 * @author 崔照鹏(16033378)
 * @myblog http://www.wooudeapp.com
 * @create 2018年1月28日
 */
@SuppressWarnings("serial")
@WebServlet(urlPatterns = "/druid/*", 
    initParams={
            @WebInitParam(name="allow",value="192.168.16.110,127.0.0.1"),// IP白名单 (没有配置或者为空,则允许所有访问)
            @WebInitParam(name="deny",value="192.168.16.111"),// IP黑名单 (存在共同时,deny优先于allow)
            @WebInitParam(name="loginUsername",value="admin"),// 用户名
            @WebInitParam(name="loginPassword",value="123456"),// 密码
            @WebInitParam(name="resetEnable",value="false")// 禁用HTML页面上的“Reset All”功能
    })
public class DruidStatViewServlet extends StatViewServlet {

}
最近下载更多
123456szx  LV5 2020年12月14日
499600644  LV1 2020年11月29日
HenrySeaMain  LV15 2020年6月13日
hh5656  LV1 2020年5月17日
rangelee  LV1 2020年4月29日
yangcongc  LV4 2020年4月25日
wsupsup  LV16 2020年3月6日
futongware  LV1 2019年12月29日
gary110110  LV3 2019年11月14日
lifei  LV3 2019年10月17日
最近浏览更多
xianyu091012  LV5 2024年12月27日
chn-lei  LV2 2024年8月30日
f22m1a2b2  LV17 2024年5月31日
dnlts_  LV1 2024年1月18日
3334004690  LV11 2023年11月1日
漫步的海星  LV4 2023年9月21日
fuyouou  LV5 2023年6月23日
hbsoft2008  LV16 2023年2月17日
微信网友_6130924632494080  LV1 2022年9月13日
sl_1993  LV2 2022年8月16日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友