Skip to content

Commit

Permalink
代码优化,去除遗留的jackson代码
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Jul 5, 2023
1 parent b46d50f commit 7dfe9d3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
*/
package me.zhengjie.exception.handler;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

/**
* @author Zheng Jie
Expand All @@ -27,12 +25,11 @@
class ApiError {

private Integer status = 400;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime timestamp;
private Long timestamp;
private String message;

private ApiError() {
timestamp = LocalDateTime.now();
timestamp = System.currentTimeMillis();
}

public static ApiError error(String message){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package me.zhengjie.modules.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
Expand All @@ -26,7 +25,6 @@
* @date 2018-12-20
*/
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuVo implements Serializable {

private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package me.zhengjie.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseDTO;
Expand All @@ -39,7 +38,6 @@ public class DeptDto extends BaseDTO implements Serializable {

private Integer deptSort;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<DeptDto> children;

private Long pid;
Expand Down
2 changes: 0 additions & 2 deletions eladmin-system/src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ spring:
check-template-location: false
profiles:
active: dev
jackson:
time-zone: GMT+8
data:
redis:
repositories:
Expand Down

0 comments on commit 7dfe9d3

Please sign in to comment.