Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
7dfe9d31
Commit
7dfe9d31
authored
Jul 05, 2023
by
Zheng Jie
Browse files
代码优化,去除遗留的jackson代码
parent
b46d50fe
Changes
4
Show whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/exception/handler/ApiError.java
View file @
7dfe9d31
...
@@ -15,9 +15,7 @@
...
@@ -15,9 +15,7 @@
*/
*/
package
me.zhengjie.exception.handler
;
package
me.zhengjie.exception.handler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
/**
* @author Zheng Jie
* @author Zheng Jie
...
@@ -27,12 +25,11 @@ import java.time.LocalDateTime;
...
@@ -27,12 +25,11 @@ import java.time.LocalDateTime;
class
ApiError
{
class
ApiError
{
private
Integer
status
=
400
;
private
Integer
status
=
400
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Long
timestamp
;
private
LocalDateTime
timestamp
;
private
String
message
;
private
String
message
;
private
ApiError
()
{
private
ApiError
()
{
timestamp
=
LocalDateTime
.
now
();
timestamp
=
System
.
currentTimeMillis
();
}
}
public
static
ApiError
error
(
String
message
){
public
static
ApiError
error
(
String
message
){
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/domain/vo/MenuVo.java
View file @
7dfe9d31
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
*/
*/
package
me.zhengjie.modules.system.domain.vo
;
package
me.zhengjie.modules.system.domain.vo
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +25,6 @@ import java.util.List;
...
@@ -26,7 +25,6 @@ import java.util.List;
* @date 2018-12-20
* @date 2018-12-20
*/
*/
@Data
@Data
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
class
MenuVo
implements
Serializable
{
public
class
MenuVo
implements
Serializable
{
private
String
name
;
private
String
name
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/service/dto/DeptDto.java
View file @
7dfe9d31
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
*/
*/
package
me.zhengjie.modules.system.service.dto
;
package
me.zhengjie.modules.system.service.dto
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseDTO
;
import
me.zhengjie.base.BaseDTO
;
...
@@ -39,7 +38,6 @@ public class DeptDto extends BaseDTO implements Serializable {
...
@@ -39,7 +38,6 @@ public class DeptDto extends BaseDTO implements Serializable {
private
Integer
deptSort
;
private
Integer
deptSort
;
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
private
List
<
DeptDto
>
children
;
private
List
<
DeptDto
>
children
;
private
Long
pid
;
private
Long
pid
;
...
...
eladmin-system/src/main/resources/config/application.yml
View file @
7dfe9d31
...
@@ -8,8 +8,6 @@ spring:
...
@@ -8,8 +8,6 @@ spring:
check-template-location
:
false
check-template-location
:
false
profiles
:
profiles
:
active
:
dev
active
:
dev
jackson
:
time-zone
:
GMT+8
data
:
data
:
redis
:
redis
:
repositories
:
repositories
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment