Spring 将moshi与弹簧靴配合使用
我已经设置了json映射器并添加了pom,但我似乎不起作用Spring 将moshi与弹簧靴配合使用,spring,spring-boot,moshi,Spring,Spring Boot,Moshi,我已经设置了json映射器并添加了pom,但我似乎不起作用 spring.http.converters.preferred-json-mapper=moshi <dependency> <groupId>com.squareup.moshi</groupId> <artifactId>moshi</artifactId> <version
spring.http.converters.preferred-json-mapper=moshi
<dependency>
<groupId>com.squareup.moshi</groupId>
<artifactId>moshi</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>com.squareup.moshi</groupId>
<artifactId>moshi-adapters</artifactId>
<version>1.9.2</version>
</dependency>
spring.http.converters.preferred json mapper=moshi
com.squareup.moshi
摩希
1.9.2
com.squareup.moshi
摩希适配器
1.9.2
仅支持jackson和gson开箱即用。对于其他人,您需要进行额外的配置并编写额外的基础结构类。只有jackson和gson是现成支持的。对于其他人,您需要进行额外的配置并编写额外的基础结构类。