Skip to content

[JAVA/jaxrs] Which is the actual default library template? jersey1 or jersey2 #3861

@y-higuchi

Description

@y-higuchi
Description

When I print jaxrs config options by swagger-codegen config-help -l jaxrs, it outputs

    library
        library template (sub-template) to use (Default: jersey1)
            jersey1 - Jersey core 1.x
            jersey2 - Jersey core 2.x (default)

Which one is the actual default?

Swagger-codegen version

2.2.0 installed via Homebrew

Swagger declaration file content or url
Command line used for generation

swagger-codegen config-help -l jaxrs

Steps to reproduce

swagger-codegen config-help -l jaxrs

Related issues
Suggest a Fix

Replace this line to jersery2
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaJerseyServerCodegen.java#L35

possibly also removing
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaJerseyServerCodegen.java#L74-L77

if the default is jersey2?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions