Spring MVC - should my domain classes implement Serializable for over-the-wire transfer?

前端 未结 5 487
误落风尘
误落风尘 2020-12-08 15:10

I\'m trying to learn Spring Boot by implementing a simple REST API.

My understanding was that if I need to transfer an object over the wire, that object should impl

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 15:40

    you should serialize if you are using caching for database operations.Usually the third party cache providers like (hazle cast, Jboss cache etc..) internally serialize/ de serialise objects.In that case model classes should implement Serializable to facilitate caching.

提交回复
热议问题