durid 监控
1、访问
http://ip:port/
http://应用的ip:应用的端口/web/user-service/druid/login.html
账号密码:
DruidAutoConfiguration 类下的
@Bean
public ServletRegistrationBean druidServlet() {
StatViewServlet druidServlet = new StatViewServlet();
ServletRegistrationBean druidServletRegistration = new ServletRegistrationBean(druidServlet);
druidServletRegistration.addInitParameter("allow", "");
druidServletRegistration.addUrlMappings("/druid/*");
druidServletRegistration.addInitParameter(ResourceServlet.PARAM_NAME_USERNAME, "admin");
druidServletRegistration.addInitParameter(ResourceServlet.PARAM_NAME_PASSWORD, "admin");
druidServletRegistration.addInitParameter("resetEnable", "false");
return druidServletRegistration;
}