A valid solution to solving java: package XXX does not exist


Copyright Notice

  • The original author of this article: Brother Gu’s younger brother
  • Author blog address: http://blog.csdn.net/lfdfhl

Problem Description

I often encounter similar depressing problems in project development: the project can run before, and the functions are completely normal; but suddenly one day, the project cannot run normally, and the console reports an error: java: package XXX does not exist. For example: java: package com.github.pagehelper does not exist; the illustration is as follows:

insert image description here

solution

Here, an efficient solution to a similar problem is documented.

Step 1: Clear the cache

insert image description here
insert image description here

Step 2: Refresh Maven

insert image description here

Step 3: Restart IDEA

Guess you like

Origin blog.csdn.net/lfdfhl/article/details/130353304