swagger-api / swagger-api/swagger-codegen

Old Code Standards: Java 1.4 Spring 1.3

Open
#4,741 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: General General: Suggestion help wanted Server: Spring
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

The code generated for Java Spring is

The Code Gen for Java Spring needs to be updated. Currently it supports Java 1.7 and Spring 1.3.

It should be upgraded to support new dependencies in the POM - so that is supports and generates modern Java 9 and Spring 5 with the latest dependencies for SpringFox.

Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce

Select Java Spring and inspect generated code stub.

Related issues
Suggest a Fix

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Java Spring generator entry point and inspect the generated code stub and POM dependencies. Compare the current Java 1.7 and Spring 1.3 output with the requested Java 9, Spring 5, and updated SpringFox dependencies, then verify the generated project builds with those versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.