I cannot access Robots.txt in Spring-MVC

前端 未结 1 710
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 23:09

I am trying to give access to robots.txt in Spring-MVC. To test the code, I put robots.txt in WebContent,Root and W

1条回答
  •  無奈伤痛
    2020-12-11 23:40

    This works for me:

    Put robots.txt directly under webapp

    In mvc-dispatcher-servlet.xml have:

    Use maven to build your war

    0 讨论(0)
提交回复
热议问题