mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 20:20:53 +00:00
Update apiController.mustache (#7248)
If the delegate is optional, put it as optional in constructor
This commit is contained in:
parent
0cbf064d2b
commit
bc6da8c082
@ -11,7 +11,7 @@ import java.util.Optional;
|
||||
<%={{ }}=%>
|
||||
{{#operations}}
|
||||
class {{classname}}Controller(
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate?
|
||||
) : {{classname}} {
|
||||
private val delegate: {{classname}}Delegate
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user