forked from loafle/openapi-generator-original
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}}
|
{{#operations}}
|
||||||
class {{classname}}Controller(
|
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}} {
|
) : {{classname}} {
|
||||||
private val delegate: {{classname}}Delegate
|
private val delegate: {{classname}}Delegate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user