Spring security 蚂蚁匹配什么模式?
我有以下蚂蚁匹配模式:Spring security 蚂蚁匹配什么模式?,spring-security,pattern-matching,hystrix,turbine,Spring Security,Pattern Matching,Hystrix,Turbine,我有以下蚂蚁匹配模式: http .authorizeRequests().antMatchers("/proxy.stream*") .authenticated().and() .formLogin() .loginPage("/dashboard/login.html") .usernameParameter("userName") .passwo
http
.authorizeRequests().antMatchers("/proxy.stream*")
.authenticated().and()
.formLogin()
.loginPage("/dashboard/login.html")
.usernameParameter("userName")
.passwordParameter("password")
.defaultSuccessUrl("/dashboard/index.html")
.permitAll();
http.authorizeRequests().anyRequest().permitAll();
它与以下url不匹配,因为其中包含保留字符“”。我希望能够匹配“proxy.stream”之后的任何内容
我已经尝试了url编码
?来源=
url的一部分,但在浏览器中会出现400个错误请求
如何告诉spring匹配我的url?错误消息是什么?添加stacktrace(如果有)。无论如何,如果它与url不匹配,请求将由控制器正常处理,就好像根本没有安全性一样。@Ali Dehghani:chrome在chrome webconsole中给出了400个错误请求。没有错误stacktrace。请检查IDE控制台或tomcat/jetty日志
https://example.com/proxy.stream?origin=https://example.com/turbine.stream?cluster