forked from github/dataease
fix: 字符串转时间格式错误
This commit is contained in:
parent
1be1faf4d4
commit
42ec51f02d
@ -9,7 +9,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
public class MysqlConfiguration extends JdbcConfiguration {
|
public class MysqlConfiguration extends JdbcConfiguration {
|
||||||
|
|
||||||
private String driver = "com.mysql.jdbc.Driver";
|
private String driver = "com.mysql.jdbc.Driver";
|
||||||
private String extraParams = "characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true";
|
private String extraParams = "characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull";
|
||||||
|
|
||||||
public String getJdbc() {
|
public String getJdbc() {
|
||||||
if(StringUtils.isEmpty(extraParams.trim())){
|
if(StringUtils.isEmpty(extraParams.trim())){
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
password: '',
|
password: '',
|
||||||
port: '',
|
port: '',
|
||||||
httpPort: 8030,
|
httpPort: 8030,
|
||||||
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true',
|
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull',
|
||||||
replicationNum: 1,
|
replicationNum: 1,
|
||||||
bucketNum: 10,
|
bucketNum: 10,
|
||||||
minPoolSize: 5,
|
minPoolSize: 5,
|
||||||
@ -125,7 +125,7 @@ export default {
|
|||||||
password: '',
|
password: '',
|
||||||
port: '',
|
port: '',
|
||||||
httpPort: 8030,
|
httpPort: 8030,
|
||||||
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true',
|
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull',
|
||||||
replicationNum: 1,
|
replicationNum: 1,
|
||||||
bucketNum: 10,
|
bucketNum: 10,
|
||||||
minPoolSize: 5,
|
minPoolSize: 5,
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
|||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
port: '',
|
port: '',
|
||||||
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true'
|
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
originConfiguration: {
|
originConfiguration: {
|
||||||
@ -116,7 +116,7 @@ export default {
|
|||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
port: '',
|
port: '',
|
||||||
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true'
|
extraParams: 'characterEncoding=UTF-8&connectTimeout=5000&useSSL=false&allowPublicKeyRetrieval=true&zeroDateTimeBehavior=convertToNull'
|
||||||
},
|
},
|
||||||
input: '',
|
input: '',
|
||||||
visible: true,
|
visible: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user