我尝试将 Spring Boot 应用程序升级到 2.7.10,它包括将 mongo-java-driver 更改为 mongodb-driver-sync。现在私有字段的解析以
java.lang.IllegalStateException Cannot set property id because no setter, no wither and it's not part of the persistence constructor public
结束。有没有办法在不公开字段的情况下重新配置一些东西来解决这个问题?