1.0.0-beta-3595
从1.0.0-beta-242
以下代码升级到Kotlin后不编译:
@Throws(Exception::class) override fun configure(http: HttpSecurity) { http.addFilterBefore(AuthenticationFilter(authenticationManager()), BasicAuthenticationFilter::class.java) http.csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and().authorizeRequests() .antMatchers("/authorization/**", "/public/**").permitAll() .antMatchers("/**").authenticated() }
返回的错误是:
SecurityAssembly.kt: (48, 65): Unresolved reference: permitAll
编辑:
permitAll方法的签名来自流行的Spring Security框架:
public ExpressionInterceptUrlRegistry permitAll() { return access(permitAll); }
我错过了什么或这是一个错误吗?