Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spring serve robots.txt

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests()
            .antMatchers("/robots.txt").permitAll()
    }
Source by javaf1.com #
 
PREVIOUS NEXT
Tagged: #spring #serve
ADD COMMENT
Topic
Name
2+7 =