Enable Keycloak only for /api/v2/* in Spring app

Hello,

We are upgrading own Spring boot application by integrating Keycloak. However, we would like to keep the current behavior for the existing REST resources and can using Keycloak only for the new API (/api/v2/) and for (/api/).

Do you know a good/easiest way to do that ?

Thank you,