@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/ping", "/users/**")
.permitAll()
.anyRequest()
.hasRole("USER");
}
::obj.method => object.method.bind(object)
class Foo {
onInit() {
this.addListener('ready', ::this.onReady);
}
onDestroy() {
this.removeListener('ready', ::this.onReady);
}
onReady() {
// не будет снят в removeListener
}
}