You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature(jackson3) add jackson3 support for spring generator
* add 'useJackson3' option
* add 'useSpringBoot4' option
* add support for RestClient in spring-http-interfaces
* add 'jacksonPackage' template variable set from useJackson3 option
See #22294
Copy file name to clipboardExpand all lines: docs/generators/java-camel.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,12 +106,14 @@ These options may be applied as additional-properties (cli) or configOptions (pl
106
106
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
107
107
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
108
108
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
109
+
|useJackson3|Set it in order to use jackson 3 dependencies (only allowed when `useSpringBoot4` is set and incompatible with `openApiNullable`).||false|
109
110
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
110
111
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||true|
111
112
|useOptional|Use Optional container for optional parameters||false|
112
113
|useResponseEntity|Use the `ResponseEntity` type to wrap return values of generated API methods. If disabled, method are annotated using a `@ResponseStatus` annotation, which has the status of the first response declared in the Api definition||true|
113
114
|useSealed|Whether to generate sealed model interfaces and classes||false|
114
115
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot ≥ 3 (use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
116
+
|useSpringBoot4|Generate code and provide dependencies for use with Spring Boot 4.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
115
117
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
116
118
|useSpringController|Annotate the generated API as a Spring Controller||false|
117
119
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,12 +99,14 @@ These options may be applied as additional-properties (cli) or configOptions (pl
99
99
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
100
100
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
101
101
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
102
+
|useJackson3|Set it in order to use jackson 3 dependencies (only allowed when `useSpringBoot4` is set and incompatible with `openApiNullable`).||false|
102
103
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
103
104
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||true|
104
105
|useOptional|Use Optional container for optional parameters||false|
105
106
|useResponseEntity|Use the `ResponseEntity` type to wrap return values of generated API methods. If disabled, method are annotated using a `@ResponseStatus` annotation, which has the status of the first response declared in the Api definition||true|
106
107
|useSealed|Whether to generate sealed model interfaces and classes||false|
107
108
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot ≥ 3 (use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
109
+
|useSpringBoot4|Generate code and provide dependencies for use with Spring Boot 4.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
108
110
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
109
111
|useSpringController|Annotate the generated API as a Spring Controller||false|
110
112
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
"Generate code and provide dependencies for use with Spring Boot ≥ 3 (use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.",
"Generate code and provide dependencies for use with Spring Boot 4.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.",
292
+
useSpringBoot4));
293
+
cliOptions.add(CliOption.newBoolean(USE_JACKSON_3, "Set it in order to use jackson 3 dependencies (only allowed when `" + USE_SPRING_BOOT4 + "` is set and incompatible with `"+OPENAPI_NULLABLE+"`).", useJackson3));
0 commit comments