Idea imports springboot project marked red, no maven

1. Question:

        There are pom files in the project but no maven

reason:

        It's because the project failed to identify the pom file, and we need to manually add maven's main pom file.

solution:

        Double-click the shift button in the project to enter the file search function, and then search for maven.

        Then click Add Maven Project to add the maven main configuration file, and then wait for compilation.

2. Reimport project & clear cache

Right-click your project->maven (compare the options below)->reimport->wait for completion

おすすめ

転載: blog.csdn.net/weixin_54514751/article/details/130247483