spring.jackson.property-naming-strategy spring.jackson.date-format不生效?

spring boot 3.0整合swagger 3(springdoc openapi ) 配置的spring.jackson.property-naming-strategy spring.jackson.date-format不生效?
  • application.yml配置
spring:
  application:
    name: jhk-webapi
  profiles:
    active: dev
  mvc:
    format:
      date: yyyy-MM-dd
      time: HH:mm:ss
      date-time: yyyy-MM-dd HH:mm:ss
    path-match:
      matching-strategy: ant_path_matcher
  jackson:
    locale: zh_CN
    time-zone: Asia/Shanghai
    date-format: yyyy-MM-dd HH:mm:ss
    property-naming-strategy: UPPER_CAMEL_CASE
  • maven配置

  <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>3.0.5version>
  parent>

  <dependency>
        <groupId>org.springdocgroupId>
        <artifactId>springdoc-openapi-starter-webmvc-uiartifactId>
        <version>2.0.4version>
  dependency>


img

从yml点进去找到配置文件对应的实体类,然后get方法debug,发现他这里是根据这个配置直接用反射实例化的(springboot3的处理)

img


改起来也简单,直接写全类路径

img

img