Skip to content

Commit

Permalink
update util
Browse files Browse the repository at this point in the history
  • Loading branch information
叶云轩.LenovoImage.Work committed Oct 30, 2019
1 parent 0f9220d commit ddfe0b2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ String encryptStr = UtilMD5.encryptString(proclaimed,randomStr);

## 提交日志

### 2019-10-30

1. 修改ResponseUtil为UtilResponse

### 2019-02-15

**重大变更**
Expand Down
2 changes: 1 addition & 1 deletion aa.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aaaaa
aaaaaaaaaa
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.yyx.xf</groupId>
<artifactId>xf-util</artifactId>
<version>1.0.8-RELEASE</version>
<version>1.0.8.1-snapshot</version>
<name>xf-util</name>
<description>xf的util单独包</description>
<!--region Maven私服-->
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/yyx/xf/tool/date/util/UtilDate.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.yyx.xf.tool.date.util;

import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.yyx.xf.commons.domain.exception.ParamException;
import org.yyx.xf.tool.string.util.UtilString;

import java.text.ParseException;
import java.text.SimpleDateFormat;
Expand Down Expand Up @@ -76,7 +76,7 @@ public static String javaUtilDateToString(Date date) {
* @return format date String 转换后的日期字符串
*/
public static String javaUtilDateToString(Date date, String pattern) {
if (StringUtils.isBlank(pattern)) {
if (UtilString.isBlank(pattern)) {
pattern = "yyyy-MM-dd HH:mm:SS";
}
try {
Expand Down Expand Up @@ -124,7 +124,7 @@ public static Date stringToJavaUtilDate(String dateStr) {
* @return java.util.Date 转换后的日期
*/
public static Date stringToJavaUtilDate(String dateStr, String pattern) {
if (StringUtils.isBlank(pattern)) {
if (UtilString.isBlank(pattern)) {
pattern = "yyyy-MM-dd HH:mm:SS";
}
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.yyx.xf.tool.web.util;

import org.yyx.xf.tool.web.domain.entity.ResponseEntity;
import org.yyx.xf.tool.web.domain.constant.ResponseConstant;
import org.yyx.xf.tool.web.domain.entity.BaseResponse;
import org.yyx.xf.tool.web.domain.entity.ResponseEntity;

/**
* Http响应工具类
Expand All @@ -11,11 +11,11 @@
* @author 叶云轩 at [email protected]
* @date 2018/10/14-21:13
*/
public class ResponseUtil {
public class UtilResponse {
/**
* 私有构造
*/
private ResponseUtil() {
private UtilResponse() {
}

/**
Expand Down

0 comments on commit ddfe0b2

Please sign in to comment.