Published
- 1 min read
spring serve robots.txt
The solution for this is noted below
spring serve robots.txt
Solution
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/robots.txt").permitAll()
}
Try other methods by searching on the site. That is if this doesn’t work