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/*"就行了。就阔以访问了。

发布了322 篇原创文章 · 获赞 61 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/wan_ide/article/details/105136448
今日推荐