Skip to content

Commit 50aa915

Browse files
committed
added cookie annotation on spring api controller template
1 parent 72310a3 commit 50aa915

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/handlebars/JavaSpring/apiController.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import org.springframework.http.ResponseEntity;
1616
{{/fullController}}
1717
import org.springframework.stereotype.Controller;
1818
{{#fullController}}
19+
import org.springframework.web.bind.annotation.CookieValue;
1920
import org.springframework.web.bind.annotation.PathVariable;
2021
import org.springframework.web.bind.annotation.RequestBody;
2122
import org.springframework.web.bind.annotation.RequestHeader;
@@ -100,7 +101,7 @@ public class {{classname}}Controller implements {{classname}} {
100101
{{#fullController}}
101102
{{#operation}}
102103
{{#contents}}
103-
public {{#async}}Callable<{{/async}}ResponseEntity<{{>returnTypes}}>{{#async}}>{{/async}} {{operationId}}({{#parameters}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},{{/hasMore}}{{/parameters}}) {
104+
public {{#async}}Callable<{{/async}}ResponseEntity<{{>returnTypes}}>{{#async}}>{{/async}} {{operationId}}({{#parameters}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{>cookieParams}}{{#hasMore}},{{/hasMore}}{{/parameters}}) {
104105
{{^isDelegate}}
105106
{{^async}}
106107
String accept = request.getHeader("Accept");

0 commit comments

Comments
 (0)