Today clone maven project based on a github IntelliJ Idea rely package download success, the code can not import. Solution: delete the original .iml, refresh.
If not, try: File-> Invalidate Caches / Restart;
If, after an upgrade SpringBoot lombok can not import, please refer to: https://blog.csdn.net/u011970235/article/details/90902966