Idea import Maven project and the spring profile file in Web. XML does not load

Source: Internet
Author: User

Using idea to import MAVEN projects, the project leaves only Src and pom.xml files

1. Import from Open idea: File----> New-----> Project from Existing Sources. Such as:

2. Select the project you want to import. Click OK

3. Be sure to choose; The second: Import project from external model imports projects from external models, then click Next

4. Next step ... Choose the JDK you need. Then: the project name must be the same as the file name, then click Filish to OK

first determine: The path to the Spring-*.xml configuration is not a problem in the Web. xml File

After configuring the Tomact, the Tomact container loads the war and ends, prompting to see the log .... have been looking for problems, and finally found that the Spring-*.xml in Web. XML is not loaded

Find a lot of information to find the problem in this, the error profile deleted, add their own spirng-configuration file. Restart tomact a bit on the OK: if

Idea import Maven project and the spring profile file in Web. XML does not load

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.