Avoid Jackson serialization on non fetched lazy objects

前端 未结 14 1886
终归单人心
终归单人心 2020-11-22 13:02

I have a simple controller that return a User object, this user have a attribute coordinates that have the hibernate property FetchType.LAZY.

When I try to get this

14条回答
  •  无人及你
    2020-11-22 13:22

    If you use XML config and use , I found that you have to nest inside as recommended on the Jackson Github account.

    Like so:

    
      
        
          
            
          
         
      
    
    

    `

提交回复
热议问题