📜  spring serve robots.txt - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.081000             🧑  作者: Mango

代码示例1
@Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests()
            .antMatchers("/robots.txt").permitAll()
    }