大家好,又见面了,我是你们的朋友全栈君。
访问路径为/admin/druid/index.html 该路径为直接访问,需要配置用户名密码。
<servlet>
<servlet-name>DruidStatView</servlet-name>
<servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
<init-param>
<!-- 用户名 -->
<param-name>loginUsername</param-name>
<param-value>druid</param-value>
</init-param>
<init-param>
<!-- 密码 -->
<param-name>loginPassword</param-name>
<param-value>druid</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>DruidStatView</servlet-name>
<url-pattern>/admin/druid/*</url-pattern>
</servlet-mapping>
资料:http://www.cnblogs.com/niejunlei/p/5977895.html http://blog.csdn.net/szzt_lingpeng/article/details/50612258
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/163575.html原文链接:https://javaforall.cn