2

In spring security I see functions connected by and() and .(dot). So what is this technique? I've read through it before. But now I forgot, can anyone tell me a name so I can learn about it?

http
  .authorizeRequests()
    .antMatchers("/", "/home").permitAll()
    .anyRequest().authenticated()
    .and()
  .formLogin()
    .loginPage("/login")
    .permitAll()
    .and()
  .logout()
    .permitAll();
Alexander van Oostenrijk
  • 4,644
  • 3
  • 23
  • 37
LAM HOANG
  • 79
  • 1
  • 6

1 Answers1

1

That is a very vague description, but i think you are looking for the term method chaining.

nvoigt
  • 75,013
  • 26
  • 93
  • 142