SpringBoot中使用druid訪問http://localhost:8080/druid/login.html時出現以下界面
ServletRegistrationBean<StatViewServlet> bean = new ServletRegistrationBean<>(new StatViewServlet(),"/druid/*");
添加上訪問的路徑"/druid/*"就行了。就闊以訪問了。
SpringBoot中使用druid訪問http://localhost:8080/druid/login.html時出現以下界面
ServletRegistrationBean<StatViewServlet> bean = new ServletRegistrationBean<>(new StatViewServlet(),"/druid/*");
添加上訪問的路徑"/druid/*"就行了。就闊以訪問了。
Spring boot 配置數據源 spring: mvc: favicon: enabled: false datasource: primary: username: root