Question: Error creating bean with name 'personRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unsupported id class! Only class java.math.BigInteger,class java.lang.String,class org.bson.types.ObjectId are supported!
上图中的Long应该改成String
本文解决了一个关于PersonRepository创建过程中出现的错误,详细介绍了如何将不支持的Long类型ID修改为String类型以符合要求。


4万+

被折叠的 条评论
为什么被折叠?



