Skip to content

ArkService跟大于2.12版本的jackson.databind中发现参数缺少 #126

@keyishan13

Description

@keyishan13

报错位置:
com.volcengine.ark.runtime.service.ArkService ==》line 108
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); // Cannot resolve symbol 'SNAKE_CASE'

解决方式:
更换为:
mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);

问题查找:
1.在新版本jackson.databind跟springboot4.0中,要求可以使用PropertyNamingStrategy或者PropertyNamingStrategies
Image
2.但是在>=2.12版本的jackson.databind中
Image
已经禁止使用了
3.新版本中使用PropertyNamingStrategies下的SNAKE_CASE
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions