The typereference reported an error classnotfoundexception:

Error message

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

First, I went to the mvnrepository to find the fastjson package
introduced into the common service dependency
but still reported an error

Later, in project structure, I found that the dependencies of search service are also divided into complie, runtime, test, etc. my fastjson scope is test. After I modify it to complie, it can be used normally

Read More: