openapi-generatorspring-boot-3

Open API Server - openapi-generator with spring boot 3


I search for informations and clarifications about using openapi-generator with spring boot 3. As I see in samples, there is no declaration of this code:

       <plugin>
            <groupId>org.openapitools</groupId>
            <artifactId>openapi-generator-maven-plugin</artifactId>
            <version>${openapi-generator.version}</version>
            <executions>
             ...
            </executions>
       </plugin>

Meanwhile I see this config useSpringBoot3.

My question: the plugin is no more used with spring boot 3 ?

Any idea ?


Solution

  • You can use useSpringBoot3 configuration in the plugin configuration like below:

    <configOptions>
            <useSpringBoot3>true</useSpringBoot3>
    </configOptions>