Update architecture.adoc
`RoleHierarchy` doesn't have the `setHierarchy` method, so the snippet doesn't work as is. The method is declared inside `RoleHierarchyImpl`
This commit is contained in:
parent
2fed213ab1
commit
9edbac7233
|
|
@ -197,7 +197,7 @@ A typical configuration might look like this:
|
||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
static RoleHierarchy roleHierarchy() {
|
static RoleHierarchy roleHierarchy() {
|
||||||
RoleHierarchy hierarchy = new RoleHierarchyImpl();
|
var hierarchy = new RoleHierarchyImpl();
|
||||||
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
|
hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
|
||||||
"ROLE_STAFF > ROLE_USER\n" +
|
"ROLE_STAFF > ROLE_USER\n" +
|
||||||
"ROLE_USER > ROLE_GUEST");
|
"ROLE_USER > ROLE_GUEST");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue