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/*"就行了。就闊以訪問了。

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