Some formatting fixes for HttpSecurity Javadoc
This commit is contained in:
parent
2f4610e8b7
commit
be36ddb614
|
@ -1051,13 +1051,21 @@ public final class HttpSecurity extends
|
|||
*
|
||||
* @Override
|
||||
* protected void configure(HttpSecurity http) throws Exception {
|
||||
* http.requestMatchers().antMatchers("/api/**", "/oauth/**").and()
|
||||
* .authorizeRequests().antMatchers("/**").hasRole("USER").and().httpBasic();
|
||||
* http
|
||||
* .requestMatchers()
|
||||
* .antMatchers("/api/**", "/oauth/**")
|
||||
* .and()
|
||||
* .authorizeRequests()
|
||||
* .antMatchers("/**").hasRole("USER")
|
||||
* .and()
|
||||
* .httpBasic();
|
||||
* }
|
||||
*
|
||||
* @Override
|
||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
||||
* auth
|
||||
* .inMemoryAuthentication()
|
||||
* .withUser("user").password("password").roles("USER");
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
|
@ -1071,13 +1079,22 @@ public final class HttpSecurity extends
|
|||
*
|
||||
* @Override
|
||||
* protected void configure(HttpSecurity http) throws Exception {
|
||||
* http.requestMatchers().antMatchers("/api/**").antMatchers("/oauth/**").and()
|
||||
* .authorizeRequests().antMatchers("/**").hasRole("USER").and().httpBasic();
|
||||
* http
|
||||
* .requestMatchers()
|
||||
* .antMatchers("/api/**")
|
||||
* .antMatchers("/oauth/**")
|
||||
* .and()
|
||||
* .authorizeRequests()
|
||||
* .antMatchers("/**").hasRole("USER")
|
||||
* .and()
|
||||
* .httpBasic();
|
||||
* }
|
||||
*
|
||||
* @Override
|
||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
||||
* auth
|
||||
* .inMemoryAuthentication()
|
||||
* .withUser("user").password("password").roles("USER");
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
|
@ -1091,14 +1108,24 @@ public final class HttpSecurity extends
|
|||
*
|
||||
* @Override
|
||||
* protected void configure(HttpSecurity http) throws Exception {
|
||||
* http.requestMatchers().antMatchers("/api/**").and().requestMatchers()
|
||||
* .antMatchers("/oauth/**").and().authorizeRequests().antMatchers("/**")
|
||||
* .hasRole("USER").and().httpBasic();
|
||||
* http
|
||||
* .requestMatchers()
|
||||
* .antMatchers("/api/**")
|
||||
* .and()
|
||||
* .requestMatchers()
|
||||
* .antMatchers("/oauth/**")
|
||||
* .and()
|
||||
* .authorizeRequests()
|
||||
* .antMatchers("/**").hasRole("USER")
|
||||
* .and()
|
||||
* .httpBasic();
|
||||
* }
|
||||
*
|
||||
* @Override
|
||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
||||
* auth
|
||||
* .inMemoryAuthentication()
|
||||
* .withUser("user").password("password").roles("USER");
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
|
|
Loading…
Reference in New Issue