Postgres defines additional jsonb Operators such as ?|.
?|
However, using Spring JpaRepository query builder, interrogation character is always considered
You can use direct call to a function jsonb_exists_any(). So in your case it would be
jsonb_exists_any()
jsonb_exists_any(u.authorities::jsonb, array['ROLE_1', 'ROLE_2'])