Idea compiles through, and the running prompt class cannot be found

The personal solution is as follows:
Check the configuration items in the figure below: Delegate IDE build/run operations to Maven
Insert picture description here

Guess you like

Origin blog.csdn.net/H_Rhui/article/details/108606012