spring robots.txt controller code example
Example: spring serve robots.txt
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/robots.txt").permitAll()
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/robots.txt").permitAll()
}