es的 ResultsMapper,下划线映射实体的驼峰格式属性

 

org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate#ElasticsearchRestTemplate(org.elasticsearch.client.RestHighLevelClient, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter, org.springframework.data.elasticsearch.core.ResultsMapper)

 

this.objectMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);

* Naming convention used in languages like C, where words are in lower-case
* letters, separated by underscores.
posted @ 2023-02-28 17:30  parkdifferent  阅读(178)  评论(0编辑  收藏  举报