springMVC robots.txt 处理


 正常情况这样就好使

 <mvc:resources mapping="/robots.txt" location="/lib/robots.txt"/> 

 如果controller能够接收到该url /robots.txt,加上 order="0" 

 <mvc:resources mapping="/robots.txt" location="/lib/robots.txt" order="0"/> 


原文地址:https://www.cnblogs.com/tenghoo/p/java_springmvc_robots_txt.html