Fixed typo in HttpSecurity.authorizeRequests javadoc

This commit is contained in:
bbelovic 2017-10-12 07:11:29 +02:00 committed by Rob Winch
parent df474e04d8
commit 91d9404828
1 changed files with 2 additions and 2 deletions

View File

@ -606,7 +606,7 @@ public final class HttpSecurity extends
* @Override
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER")
* .and().withUser("adminr").password("password").roles("ADMIN", "USER");
* .and().withUser("admin").password("password").roles("ADMIN", "USER");
* }
* }
* </pre>
@ -629,7 +629,7 @@ public final class HttpSecurity extends
* &#064;Override
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
* auth.inMemoryAuthentication().withUser(&quot;user&quot;).password(&quot;password&quot;).roles(&quot;USER&quot;)
* .and().withUser(&quot;adminr&quot;).password(&quot;password&quot;).roles(&quot;ADMIN&quot;, &quot;USER&quot;);
* .and().withUser(&quot;admin&quot;).password(&quot;password&quot;).roles(&quot;ADMIN&quot;, &quot;USER&quot;);
* }
* }
* </pre>