Inspectopedia Help

Undeclared '@Produces' / '@Consumes' MIME types for '@Path'

Reports endpoint methods without the @Produces or @Consumes annotations.

Quarkus analyzes these annotations and restricts the number of JAX-RS providers included in the native executable to the minimum required by the application. This reduces the size of the native executable.

Annotate methods or the whole class with @Produces or @Consumes (if supported by the HTTP method) and specify the target MIME types.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Quarkus, 233.SNAPSHOT

Last modified: 13 July 2023