SSM Consolidation Basic configuration file (Springmvc,spring,mybatis)

Source: Internet
Author: User

jar Package:All packages of spring, SPRINGMVC is all packages, mybatis all packages, database driver package, JSTL package (JSP page required);

Basic Profile:Springmvc.xml (Core configuration of Springmvc), Applicationcontext.xml (core configuration file for spring), Sqlmapconfig.xml ( MyBatis Core configuration file), log4j.properties (log file), Dp.properties

Springmvc.xml (3): annotation scan, annotation driver, view resolver;

Applicationcontext.xml (8): annotation scan, import db.properties, things, AOP facets, sqlsessionfactory objects (let Spring manage sqlsessionfactory), (Integration of pre-mybatis configuration files) things manager, data connection pool ,Mapper package scan

Note: Mapper package scan, must mapper.xml map file name and DAO interface name consistent, in the same directory

      

Sqlmapconfig.xml:

Nothing to configure, just configure <configuration></configuration> tag, but cannot be configured, because this is the core file of MyBatis

Db.properties: (database) driver, url, user, password

    

Core profile:Web. XML (Configure Spring Listener, configure SPRINGMVC Front Controller, configure post request garbled resolution)

  

    

      

  



SSM Consolidation Basic configuration file (Springmvc,spring,mybatis)

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.