弹簧启动因gson 2.2.4失败

时间:2019-03-27 03:33:10

标签: spring spring-boot

运行SpringApplication之后,出现此错误。

当我使用gson 2.8.2时,以下错误未显示。

但是,由于我项目中的依赖库,我应该使用gson 2.2.4。

如何使用gson 2.2.4运行spring boot应用程序?

sendSomeRequest

1 个答案:

答案 0 :(得分:0)

在最新的gson mvn软件包之后出现了类似的问题,在Spring Boot中解决了我的问题

    <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.8.6</version>
    </dependency>