You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/03/04 14:44:52 UTC

[incubator-linkis] branch dev-1.1.0-datasource updated: Update Message.scala (#1618)

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.0-datasource
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.1.0-datasource by this push:
     new cb7a42f  Update Message.scala (#1618)
cb7a42f is described below

commit cb7a42fd1d6b3071b8d7b290ab5b19ba6938bf35
Author: husofskyzy <15...@163.com>
AuthorDate: Fri Mar 4 22:44:47 2022 +0800

    Update Message.scala (#1618)
    
    change return type from xml to json
---
 .../linkis-module/src/main/scala/org/apache/linkis/server/Message.scala | 2 --
 1 file changed, 2 deletions(-)

diff --git a/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/Message.scala b/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/Message.scala
index abf9f54..5ea0d4a 100644
--- a/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/Message.scala
+++ b/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/Message.scala
@@ -20,14 +20,12 @@ package org.apache.linkis.server
 import java.util
 
 import javax.servlet.http.HttpServletRequest
-import javax.xml.bind.annotation.XmlRootElement
 import org.apache.commons.lang.StringUtils
 import org.apache.commons.lang.exception.ExceptionUtils
 import org.slf4j.LoggerFactory
 import org.springframework.web.context.request.{RequestContextHolder, ServletRequestAttributes}
 
 
-@XmlRootElement(name = "message")
 class Message(private var method: String,
               private var status: Int = 0,          //-1 no login, 0 success, 1 error, 2 validate failed, 3 auth failed, 4 warning
               private var message: String,

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org