SpringBoot中使用druid访问http://localhost:8080/druid/login.html时报localhost 将您重定向的次数过多。

SpringBoot中使用druid访问http://localhost:8080/druid/login.html时出现以下界面

ServletRegistrationBean<StatViewServlet> bean = new ServletRegistrationBean<>(new StatViewServlet(),"/druid/*");

添加上访问的路径"/druid/*"就行了。就阔以访问了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章