IDEA Error: The main class could not be found or could not be loaded

Source: Internet
Author: User


2018/1/24 Update

For the initial use of idea may not be very good, single import projects, need to wait for a while, do not worry about the program (PS: Network bad time)

Because the general Spring boot project needs to download, or cache dependencies,, wait, the lower right below the progress bar, no movement, the main class no error, in the test,

If it's still an error, think about other issues.

---------------

A spring boot project was downloaded, and when the idea was imported, there was always coverage,

Later, after entering the project, it appeared main instead of the project name, and later ran out of


Baidu a bit, there is no better answer, later in project structure, saw Modul-"path



There are two, a startup entry that belongs to the original project, a main and then delete main, you can run,

When running, a warning may appear, continue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.