引入GSON
This commit is contained in:
@@ -5,6 +5,7 @@ dependencies {
|
||||
compile("org.springframework.boot:spring-boot-starter-mail:$spring_version")
|
||||
compile group: 'net.sf.dozer', name: 'dozer', version: '5.5.1'
|
||||
compile group: 'org.apache.poi', name: 'poi', version: '4.1.2'
|
||||
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.synebula.gaea.app.component
|
||||
|
||||
import com.google.gson.Gson
|
||||
import com.synebula.gaea.data.message.DataMessage
|
||||
|
||||
class HttpMessage() : DataMessage<Any>() {
|
||||
@@ -22,4 +23,8 @@ class HttpMessage() : DataMessage<Any>() {
|
||||
this.message = msg.message
|
||||
this.data = msg.data
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return Gson().toJson(this)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user