Update apiController.mustache (#7248)

If the delegate is optional, put it as optional in constructor
This commit is contained in:
Michael Czolko 2020-12-14 09:10:26 +01:00 committed by GitHub
parent 0cbf064d2b
commit bc6da8c082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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