protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/resources/**").permitAll()
.and()
.antMatcher("/resources/**").headers().cacheControl()
}
当我运行此代码时,if语句有效,但它只是重复返回输入
答案 0 :(得分:0)