mirror of
https://gitee.com/jzsw-it/yexuejc-base.git
synced 2025-06-07 22:34:04 +08:00
1.3.7 回滚1.3.6至1.3.5
This commit is contained in:
parent
1f4d31f842
commit
763616c67d
@ -1,6 +1,13 @@
|
||||
yexuejc-base 更新记录
|
||||
------------------
|
||||
|
||||
#### version :1.3.7
|
||||
**time:2019-1-11 10:02:03** <br/>
|
||||
**branch:** master <br/>
|
||||
**update:** <br/>
|
||||
>1. 考虑到向下兼容,回滚1.3.6【json增加下划线、驼峰互转】,考虑更优方案(解决加入下个版本)
|
||||
#
|
||||
|
||||
#### version :1.3.6
|
||||
**time:2019-1-10 14:55:13** <br/>
|
||||
**branch:** master <br/>
|
||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>top.yexuejc</groupId>
|
||||
<artifactId>yexuejc-base</artifactId>
|
||||
<version>1.3.6</version>
|
||||
<version>1.3.7</version>
|
||||
|
||||
<name>${project.artifactId}</name>
|
||||
<url>https://github.com/yexuejc/yexuejc-base</url>
|
||||
|
@ -12,7 +12,6 @@ import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
||||
/**
|
||||
* json工具类,基于jackson
|
||||
*
|
||||
@ -48,6 +47,10 @@ public class JsonUtil {
|
||||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
|
||||
objectMapper.setDateFormat(DateUtil.DATE_TIME_FORMAT);
|
||||
}
|
||||
|
||||
//TODO 待优化
|
||||
public static void initSnakeCase() {
|
||||
//驼峰下划线互转
|
||||
objectMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
|
||||
}
|
||||
@ -109,7 +112,6 @@ public class JsonUtil {
|
||||
return pojo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Json字符串转换为Java对象
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user