Some friends may have just imported the jar package in Maven like me, but there is a problem when importing the import class in the java class
Solution:
Find External Libraries-> The jar in question-> Right-click Open Libarary Settings-> Modules-> The module that the project belongs to-> Dependencies-> The jar in question-> Scope changed to Compile