[BUG][JAVA][Spring] When specifying a responseWrapper, jdk8 is false and doesn't import Optional in Controller
Created by: LionH
in this code line, the jdk8 parameter is set to false when a responseWrapper is specified and even with the option useOptional=true, the APIController doesn't take in account the option flag. I suggest to use the useOptional option also in the apiController or not to set to false the jdk8 in case we use a responseWrapper.
My actual configuration:
configOptions = [
delegatePattern : "true",
dateLibrary : "java8",
interfaceOnly : "false",
java8: "true",
performBeanValidation : "true",
responseWrapper: "CompletableFuture",
serializationLibrary : "jackson",
swaggerDocketConfig : "true",
useOptional : "true"
]