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 (#22854)
* 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
@@ -107,12 +107,14 @@ These options may be applied as additional-properties (cli) or configOptions (pl
107
107
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
108
108
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
109
109
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
110
+
|useJackson3|Set it in order to use jackson 3 dependencies (only allowed when `useSpringBoot4` is set and incompatible with `openApiNullable`).||false|
110
111
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
111
112
|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|
112
113
|useOptional|Use Optional container for optional parameters||false|
113
114
|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|
114
115
|useSealed|Whether to generate sealed model interfaces and classes||false|
115
116
|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|
117
+
|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|
116
118
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
117
119
|useSpringController|Annotate the generated API as a Spring Controller||false|
118
120
|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
@@ -100,12 +100,14 @@ These options may be applied as additional-properties (cli) or configOptions (pl
100
100
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
101
101
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
102
102
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
103
+
|useJackson3|Set it in order to use jackson 3 dependencies (only allowed when `useSpringBoot4` is set and incompatible with `openApiNullable`).||false|
103
104
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
104
105
|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|
105
106
|useOptional|Use Optional container for optional parameters||false|
106
107
|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|
107
108
|useSealed|Whether to generate sealed model interfaces and classes||false|
108
109
|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|
110
+
|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|
109
111
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
110
112
|useSpringController|Annotate the generated API as a Spring Controller||false|
111
113
|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`.",
295
+
useSpringBoot4));
296
+
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