jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.7k stars 199 forks source link

jooby-apt: add option to remove mvcMethod and returnType from route #3492

Closed jknack closed 1 month ago

jknack commented 1 month ago

Today:

{
      /** See {@link Controller1292#response() */
      app.get("/", this::response)
        .setReturnType(String.class)
        .setMvcMethod(Controller1292.class.getMethod("response"));
}

With: -Ajooby.mvcMethod=false and -Ajooby.returnType=false:

{
      /** See {@link Controller1292#response() */
      app.get("/", this::response);
}