How to set Mongodb Field Naming Strategy in Spring boot

为君一笑 提交于 2019-12-06 06:09:19

SpringBoot 1.3 has spring-data-mongodb version 1.8 and in this version of jar class with name SnakeCaseFieldNamingStrategy is not present.

Checked with the api docs here.. http://docs.spring.io/spring-data/mongodb/docs/1.8.0.RELEASE/api/

I guess u need to degrade the version of spring-data-mongodb to 1.5 or so. Probably this is the reason your Field naming strategy is not working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!