1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[JBoss] Resteasy JAXRS -Using static final Strings in @ApplicationPath and @Path annotations

Discussão em 'StackOverflow' iniciado por Stack, Setembro 25, 2021.

  1. Stack

    Stack Membro Participativo

    Is this possible? Let's say there is an interface declaring final static Strings that define application path and paths for resources, so as to have a single reference and ensure consistency in a very large application suite of servers and clients.

    The annotations @interface takes a String value. But must this be a string literal?

    Anybody tried something like this? Works?

    I gave it a quick trial and it appears that it doesn't, why I do not know.

    Continue reading...

Compartilhe esta Página