Using jackson annotation to output child without nested format

前端 未结 0 1078
离开以前
离开以前 2021-01-30 11:57

I have two class.

Class A{
    B b;
}
Class B{
    String id;
    String name;
}

I am getting this.

{"b":
     {"na         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题