Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

i cannot access robots txt in spring mvc

i cannot access robots txt in spring mvc  using -'java,spring,spring-mvc,web-hosting,robots.txt'

I am trying to give access to robots.txt in Spring-MVC. To test the code, I put robots.txt in WebContent,Root and WEB-INF but I cannot access to any of them.

I've already applied answers of these questions 1,2,3 to no avail.


<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:resources mapping="/robots.txt" location="/robots.txt" order="0" />
<mvc:annotation-driven />


asked Oct 19, 2015 by badhwar.rohit
0 votes

Related Hot Questions

Government Jobs Opening