You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/10/10 04:05:18 UTC

[GitHub] [servicecomb-java-chassis] rianepeny opened a new issue #1988: Jackson @JsonProperty注解未生效

rianepeny opened a new issue #1988:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1988


   代码:
   `
   @Setter
   @Getter
   public class GetUserInfoResult {
       private String resultCode = "0";
   
       @JsonProperty("GetUserInfoRsp")
       private GetUserInfoRsp getUserInfoRsp;
   }
   `
   
   返回的Json还是小写
   ` 
   {
           "resultCode": "0",
           "GetUserInfoRsp": {
               "version": "50000",
               "traceFlag": "0"
           }
   }
   `
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1988: 求助:Jackson @JsonProperty注解未生效

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1988:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1988#issuecomment-706978906


   那么需要你提供一个简单的重现 DEMO 了, 我查询了 java-chassis 的自动化测试用例, 有涵盖这方面的测试。 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1988: 求助:Jackson @JsonProperty注解未生效

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1988:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1988#issuecomment-706842384


   看下 import 的类属于哪个 package? 是不是package不对?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] rianepeny commented on issue #1988: 求助:Jackson @JsonProperty注解未生效

Posted by GitBox <gi...@apache.org>.
rianepeny commented on issue #1988:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1988#issuecomment-706951672


   > 看下 import 的类属于哪个 package? 是不是package不对?
   
   我引用的包名是:com.fasterxml.jackson.annotation.JsonProperty


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org