1. 程式人生 > >Druid Monitor開啟登入介面

Druid Monitor開啟登入介面

    <!-- druid -->
    <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>/css/*,/context/*,/plug-in/*,/plug-in-ui/*,*.js,*.css,*.gif ,*.jpg,*.png,*. ico,*/druid*,/attached/*,/upload/*,/webpage/*,/swagger/*,*.jsp</param-value> </init-param> </filter> <filter-mapping> <filter-name>druidWebStatFilter</filter-name> <
url-pattern>/*</url-pattern> </filter-mapping> <!-- 配置 Druid 監控資訊顯示頁面 --> <servlet> <servlet-name>druidStatView</servlet-name> <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class> <!--
允許清空統計資料 <init-param> <param-name>resetEnable</param-name> <param-value>true</param-value> </init-param> --> <!-- 使用者名稱 --> <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>/webpage/system/druid/*</url-pattern> </servlet-mapping> <!-- druid -->

 

https://blog.csdn.net/renfufei/article/details/39553639