OpenAPITools / OpenAPITools/openapi-generator

generated spring-cloud code lack of spring.factories and spring-boot-configuration-processor

Open
#9,797 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

this module uses spring ConfigurationProperties
but without spring.factories file and spring-boot-configuration-processor dependency, IDE(I use intellij idea) could not recognize properties defined in configuration class
so application-.properties/application-.yml will report properties not defined warning

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 by locating the Spring Cloud generator templates and the generated module dependency configuration. Check how generated Spring ConfigurationProperties classes are wired and whether spring.factories and spring-boot-configuration-processor are included. Done means IntelliJ no longer warns that application properties are undefined for the generated module.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.