From 73ef416fe1687b14e8a7766d5094cc7f1ce143c8 Mon Sep 17 00:00:00 2001 From: hsoh Date: Fri, 11 Mar 2022 10:50:23 +0900 Subject: [PATCH] =?UTF-8?q?response=20data=20size=20=ED=99=95=EC=9E=A5(var?= =?UTF-8?q?char(5000)=20-->=20clob)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/eactive/httpmockserver/ApiInfo.java | 30 ++++++++----------- src/main/resources/application.yml | 2 +- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/eactive/httpmockserver/ApiInfo.java b/src/main/java/com/eactive/httpmockserver/ApiInfo.java index adc8cb3..c025b20 100644 --- a/src/main/java/com/eactive/httpmockserver/ApiInfo.java +++ b/src/main/java/com/eactive/httpmockserver/ApiInfo.java @@ -8,6 +8,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Index; +import javax.persistence.Lob; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import javax.validation.constraints.Digits; @@ -57,13 +58,15 @@ public class ApiInfo implements Serializable { @Column(length = 50) private String syntaxResponseBody1; - @Column(length = 5000) + @Column + @Lob private String responseBody1; @Column(length = 50) private String syntaxResponseBody2; - @Column(length = 5000) + @Column + @Lob private String responseBody2; public Long getId() { @@ -180,21 +183,12 @@ public class ApiInfo implements Serializable { @Override public String toString() { - return "ApiInfo{" + - "id=" + id + - ", apiGroupName='" + apiGroupName + '\'' + - ", apiName='" + apiName + '\'' + - ", url='" + url + '\'' + - ", serviceValue='" + serviceValue + '\'' + - ", method='" + method + '\'' + - ", responseContentType='" + responseContentType + '\'' + - ", responseHeaders='" + responseHeaders + '\'' + - ", responseStatusCode=" + responseStatusCode + - ", sleepSeconds=" + sleepSeconds + - ", syntaxResponseBody1='" + syntaxResponseBody1 + '\'' + - ", responseBody1='" + responseBody1 + '\'' + - ", syntaxResponseBody2='" + syntaxResponseBody2 + '\'' + - ", responseBody2='" + responseBody2 + '\'' + - '}'; + return "ApiInfo{" + "id=" + id + ", apiGroupName='" + apiGroupName + '\'' + ", apiName='" + apiName + '\'' + + ", url='" + url + '\'' + ", serviceValue='" + serviceValue + '\'' + ", method='" + method + '\'' + + ", responseContentType='" + responseContentType + '\'' + ", responseHeaders='" + responseHeaders + + '\'' + ", responseStatusCode=" + responseStatusCode + ", sleepSeconds=" + sleepSeconds + + ", syntaxResponseBody1='" + syntaxResponseBody1 + '\'' + ", responseBody1='" + responseBody1 + '\'' + + ", syntaxResponseBody2='" + syntaxResponseBody2 + '\'' + ", responseBody2='" + responseBody2 + '\'' + + '}'; } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f5784ad..3de49c5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -22,7 +22,7 @@ spring: hibernate: ddl-auto: update format_sql: true - show-sql: true + show-sql: false database-platform: org.hibernate.dialect.H2Dialect h2.console: enabled: true