正常情况这样就好使
<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"/>正常情况这样就好使
<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"/>