升级fastjson

pull/19/head
Parker 2 years ago
parent 0d8ae91cc8
commit 32d6b60497

@ -20,6 +20,7 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Console;
import cn.hutool.core.net.NetUtil;
import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.StrUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.opsli.core.autoconfigure.properties.GlobalProperties;
@ -98,7 +99,8 @@ public class StartPrint {
* @return String
*/
public String getBasePath(){
return NetUtil.getLocalhostStr() + ":" + serverPort + serverContextPath;
return NetUtil.getLocalhostStr() + ":" + serverPort
+ StrUtil.addPrefixIfNot(serverContextPath, "/");
}
/**
@ -107,7 +109,8 @@ public class StartPrint {
*/
public String getRunTime(){
//Level.MINUTE表示精确到分
return DateUtil.formatBetween(DateUtil.parseDateTime(starterDate), DateUtil.date(), BetweenFormatter.Level.MINUTE);
return DateUtil.formatBetween(DateUtil.parseDateTime(starterDate),
DateUtil.date(), BetweenFormatter.Level.MINUTE);
}
// ======================

@ -62,7 +62,7 @@
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
<skipTests>true</skipTests>
<fastjson.version>1.2.75</fastjson.version>
<fastjson.version>1.2.83</fastjson.version>
<mybatis-plus.version>3.4.0</mybatis-plus.version>
<pagehelper.version>1.3.0</pagehelper.version>

Loading…
Cancel
Save