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"/>
-
- DeepSought
- 探索AI融入千行百业与日常生活
浙公网安备 33010602011771号