Problem 1: Serialization and deserialization problem
Org.hibernate.LazyInitializationException:failed to lazily initialize a collection could not initialize Proxy-no On
This problem occurs because of the use of JPA in spring boot, the massive use of @manytomany, @ManyToOne, @OneToMany, while the Java Persistence API (JPA) in spring boot Because of the configuration problems in the framework of these foreign key data issues on the lazy load and the immediate load of spring boot, the difference can not be used at this time, the two load patterns in the use of the system will have many problems. Typically, on manytomany annotations, there is a duplication of data when the query is loaded with instant loading. And lazy load will appear in the above error information, especially when the data is stored in Redis, because these foreign key information can not load caused an error. On this issue, the ZYW is used to treat these unwanted data on a null-based approach .