The project uses fastjason to report an error

The project uses fastjason to report an error

java.lang.ClassNotFoundException: com.alibaba.fastjson.JSONValidator

The error shows that the jsonvalidator class cannot be found. Open the Maven interface of idea to find the related dependencies

display the dependency of this module Alipay SDK Java. The version of fastjson under this dependency is 1.2.50

Jsonvalidator is a later version

resolvent:

Introduce a new dependency in the POM file under the root directory, using fastjson version 1.2.75

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.75</version>
</dependency>

Read More: