SSM integrated learning readiness

Spring What is that?

Spring Modules

Spring Framework Web pages garbled

Can be used Spring Framework comes with a filter CharacterEncodingFilter, this can greatly reduce our workload, that is simple and easy to understand, configure as follows: filter in the web.xml file, add the following location:

    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF8</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

SpringMVC

 

 MyBatis

1, mybatis configuration

SqlMapConfig.xml, mybatis this file as a global configuration file to configure the mybatis operating environment and other information.

mapper.xml sql file that is mapped files, configure the operation of the database sql statement. This file needs to be loaded in SqlMapConfig.xml in.

2, i.e. the configuration information configured SqlSessionFactory session factory environment by mybatis

3. Create a session by a session that is sqlSession plant, operation of the database needs to be by sqlSession.

4, mybatis underlying actuator Executor customized database interface operation, there are two interfaces implemented Executor, it is a basic actuator, an actuator is a buffer.

5, Mapped Statement mybatis is a bottom package object that wraps mybatis sql configuration information and mapping information. mapper.xml a file corresponding to a sql Mapped Statement objects, sql Mapped statement that is the id of the id.

. 6, Mapped Statement performed on input parameters sql defined, including the HashMap, basic types, pojo, Executor by mapping java object Mapped Statement before performing sql inputted to sql input parameter mapping is jdbc programming set parameters preparedStatement.

. 7, Mapped Statement sql execution of the output is defined, comprising the HashMap, basic types, pojo, Executor by mapping Mapped Statement after performing sql java object outputs the result to the output result of the mapping process is equivalent jdbc programming parsing results process.

 

Guess you like

Origin www.cnblogs.com/wellwell/p/11504560.html