This is now fixed with SpringBoot 2.5.1

Small question about a warning I am receiving please.

在SpringBoot的2.5.0发布之后,我刚刚将版本从2.4.x升级到2.5.0,没有任何代码更改.

Suddenly, on application start up, I am getting

kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder: For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath

问题是,我的Springboot all不是Kotlin应用程序,而是Java应用程序.

Kotlin 什么都没有.

Furthermore, I am not even doing any explicit JSON parsing.

May I ask how I can disable, resolve this warning please?

推荐答案

似乎有一个解决办法.这个 idea 是为Jackson2ObjectMapperBuilderCustomizer提供额外的配置.很糟糕,需要更改代码,但你已经做到了.

Kotlin相关问答推荐

Fleet无法从构建文件自动重新加载更改错误'

Kotlin中的增广赋值语句中的难以理解的错误

KTOR';S函数`staticResources`在Kotlin本机目标上不可用

如何在操作系统版本上正确获取Room数据库的路径>;=26 sdk?

Spring Boot Kotlin 数据类未使用 REST 控制器中的默认值初始化

Kotlin 函数有 2 个参数用于对 Map 或 List 进行排序

在 Compose 中使用 Text() 时如何获取文本的大小?

使用空键映射获取

Kotlin 日期格式从一种更改为另一种

如何为你的 Flutter 元素添加 Kotlin 支持?

对列表中数字的子集求和

IntentService (kotlin) 的默认构造函数

如何在使用 Gradle 的 AppEngine 项目中使用 Kotlin

Jetpack Compose State:修改类属性

如何为kotlin异常生成SerialVersionId?

添加抽象的私有getter和公共setter的正确方法是什么?

Spring Boot:更改属性占位符符号

如何获取Kotlin中变量的名称?

如何在Kotlin中使用ViewModelProviders

Kotlin中的嵌套let块