First find the idea of the installation location, enter the lib folder
Then open the idea, File -> Project Structure. Select Project Settings in Libraries, click shown in the "+" sign.
Then add the following two packages
Click OK, and successfully added it
thank big brother to share https://blog.csdn.net/danmo_wuhen/article/details/104117243