From c6068dcd9b3f45affe1044dd26486157c952157f Mon Sep 17 00:00:00 2001 From: kolyjjj Date: Thu, 14 Apr 2016 22:20:00 +0800 Subject: [PATCH] [issue-2374][koly] use three brackets to unescape variables --- .../src/main/resources/JavaSpringMVC/api.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/JavaSpringMVC/api.mustache b/modules/swagger-codegen/src/main/resources/JavaSpringMVC/api.mustache index 5f6cc147a9..ee02339909 100644 --- a/modules/swagger-codegen/src/main/resources/JavaSpringMVC/api.mustache +++ b/modules/swagger-codegen/src/main/resources/JavaSpringMVC/api.mustache @@ -29,8 +29,8 @@ import java.util.List; import static org.springframework.http.MediaType.*; @Controller -@RequestMapping(value = "/{{baseName}}", produces = {APPLICATION_JSON_VALUE}) -@Api(value = "/{{baseName}}", description = "the {{baseName}} API") +@RequestMapping(value = "/{{{baseName}}}", produces = {APPLICATION_JSON_VALUE}) +@Api(value = "/{{{baseName}}}", description = "the {{{baseName}}} API") {{>generatedAnnotation}} {{#operations}} public class {{classname}} { @@ -45,7 +45,7 @@ public class {{classname}} { }{{/hasAuthMethods}}) @io.swagger.annotations.ApiResponses(value = { {{#responses}} @io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{returnType}}}.class){{#hasMore}},{{/hasMore}}{{/responses}} }) - @RequestMapping(value = "{{path}}", + @RequestMapping(value = "{{{path}}}", {{#hasProduces}}produces = { {{#produces}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }, {{/hasProduces}} {{#hasConsumes}}consumes = { {{#consumes}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} },{{/hasConsumes}} method = RequestMethod.{{httpMethod}})