The solution to the problem that classes imported by import are all popular (universal)

Preface

When import becomes popular, we need to classify and discuss it. One is the package introduced in the project, and the other is maven's dependency package.

Are all bags popular? The prerequisite is that the path is correct!

The general configuration in idea is as follows:

  • Figure 1:
    Insert image description here
  • Figure II:
    Insert image description here
  • Figure 3:-DarchetypeCatalog=internal
    Insert image description here

1. The project package became popular

The package was originally in the project, but when importing it, it will be marked in red and an error will be reported.

You need to make sure that it is not caused by a path problem. If the path is incorrect, just change it.

as the picture shows:

Guess you like

Origin blog.csdn.net/weixin_47872288/article/details/134920044