Случай 1
Код: Выделить всё
.requestMatchers(GET, "/foo/{foo_id}/bars").hasAnyRole(SUPER_HERO.name(), KNIGHT.name())
Код: Выделить всё
.requestMatchers(POST, "/foo/{foo_id}/baas/{bar_id}").hasAnyRole(SUPER_HERO.name())
Подробнее здесь: https://stackoverflow.com/questions/792 ... -variables
Мобильная версия