Use IntelliJ idea to create a spring/springmvc/hibernate project when you step on the pit

Source: Internet
Author: User
Tags function prototype

1. When using idea to create a new project, select the spring category on the left and the sub-category on the right, and use it to generate the Web. XML, Dispatcher-servlet.xml, Applicationcontext.xml and even hibernate.cfg.xml. But after the new is done, it is recommended to add Framework:maven, do not use those spring libraries, because there will be a potential jar library incompatibility problem. For example, some version of spring data in the curdrepository of the Save interface function and some spring data JPA jparepository in the Save interface function prototype inconsistent, resulting in a compilation error.

2. File->project structure in the artifacts to be aware of the need to add the jar to the/web-inf/lib to avoid the occurrence of the package is not found;

3. It is important to check the package compatibility that is introduced by Pom, as long as there are no packages to find, no functions to find, etc.

Use IntelliJ idea to create a spring/springmvc/hibernate project when you step on the pit

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.