输出请求参数

This commit is contained in:
bigtian 2022-08-25 10:03:38 +08:00
parent e9e23d1324
commit 0a29703a19
2 changed files with 7 additions and 1 deletions

View File

@ -219,7 +219,11 @@
<version>19.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.12</version>
</dependency>
<!-- 编码识别 -->
<dependency>

View File

@ -4,6 +4,7 @@ import cn.keking.exception.KkFileException;
import cn.keking.service.ContractService;
import cn.keking.utils.Consts;
import cn.keking.utils.ServiceResponse;
import com.alibaba.fastjson2.JSON;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
@ -122,6 +123,7 @@ public class ContractController {
HttpServletResponse response
) {
try {
log.error(JSON.toJSONString(dataMap));
OutputStream outstream = null;
File file=contractService.download(templateName, dataMap);