|
|
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.http.MediaType;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import ${package}.${moduleName}.biz.service.${className}Service;
|
|
|
@@ -34,7 +35,7 @@ import java.util.Arrays;
|
|
|
*/
|
|
|
@Api(tags="${comments}")
|
|
|
@RestController
|
|
|
-@RequestMapping("${moduleName}/${pathName}")
|
|
|
+@RequestMapping(value = "${moduleName}/${pathName}", produces = {MediaType.APPLICATION_JSON_UTF8_VALUE})
|
|
|
public class ${className}Controller extends BaseController {
|
|
|
|
|
|
@Resource
|