The problem of not being able to find pojo in the idea running project (solved)

The problem of not being able to find pojo in the idea running project (solved)

Problem Description

An error occurred during the process of migrating classes between modules. Cannot find class XXX under the XXX path

However, the named idea code interface can import the target class, so it will report an error!

So I thought of clearing the target.
I maven clean the target or it doesn’t work.

analysis

Since it is not caused by idea running the code in the target folder, then there is a problem when compiling itself (after rebuild project, it still reports an error, which proves that the problem is at the compilation level)

solve

Clean up the idea cache

ItelliJIDEA's ultra-fast search speed and powerful code hints are realized by the cache, the old index in the cache, so the path is not updated during compilation, resulting in the inability to find the XXX category under the XXX path. The problem will be solved after clearing the cache.

Insert picture description here

Memorial Day is 520 days
I miss you
xiaokeai

Guess you like

Origin blog.csdn.net/weixin_42914989/article/details/114363680