Commit 5bc42d0e9a85facdccea0141a95b0a1c783abcbb
1 parent
ed11276266
Exists in
master
添加response 基础类
Showing 1 changed file with 17 additions and 0 deletions
parent/hospital.web/src/main/java/com/lyms/hospital/response/BaseResponseModule.java
View file @
5bc42d0
| 1 | +package com.lyms.hospital.response; | |
| 2 | + | |
| 3 | +import java.io.Serializable; | |
| 4 | + | |
| 5 | +import org.apache.commons.lang3.builder.ToStringBuilder; | |
| 6 | +import org.apache.commons.lang3.builder.ToStringStyle; | |
| 7 | + | |
| 8 | +public class BaseResponseModule implements Serializable { | |
| 9 | + | |
| 10 | + private static final long serialVersionUID = 1L; | |
| 11 | + | |
| 12 | + @Override | |
| 13 | + public String toString() { | |
| 14 | + return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE); | |
| 15 | + } | |
| 16 | + | |
| 17 | +} |