Home  >  Article  >  Java  >  Ma Soldier spring video data analysis (courseware, source code)

Ma Soldier spring video data analysis (courseware, source code)

黄舟
黄舟Original
2017-12-04 11:29:033637browse

Spring is a Java open source framework created to solve the complexity of enterprise application development and is widely used. One of the "S"s in the very popular SSH architecture in the industry refers to Spring. Spring is committed to solutions for all layers of J2EE applications, rather than just focusing on a certain layer of solutions. It can be said that Spring is the "one-stop" choice for enterprise application development, and runs through the presentation layer, business layer and persistence layer.

Ma Soldier spring video data analysis (courseware, source code)

Course playback address: http://www.php.cn/course/512.html

The teacher’s teaching style:

The teacher’s lectures are vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; a well-placed humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and alertness.

The more difficult point in this video is spring integrating mybatis:

First, we need to download the Mybatis-Spring jar package from the Mybatis official website and add it to our Under the class path of the project, of course, you also need to add the related jar packages of Mybatis and the related jar packages of Spring. We know that all operations in Mybatis are based on a SqlSession, and SqlSession is generated by SqlSessionFactory, and SqlSessionFactory is generated by SqlSessionFactoryBuilder. But Mybatis-Spring is based on SqlSessionFactoryBean. When using Mybatis-Spring, we also need SqlSession, and this SqlSession is embedded in the program and generally does not require us to access it directly. SqlSession is also generated by SqlSessionFactory, but Mybatis-Spring encapsulates a SqlSessionFactoryBean for us. In this bean, we still use SqlSessionFactoryBuilder to establish the corresponding SqlSessionFactory, and then obtain the corresponding SqlSession. Through SqlSessionFactoryBean we can provide some configuration information of Mybatis by specifying some properties on it. So next we need to define a SqlSessionFactoryBean in Spring's applicationContext configuration file.

Here we also recommend downloading source code resources: http://www.php.cn/xiazai/learn/1943

This courseware shares the video with everyone:

1. Horse Soldier Spring-Video Notes.doc

The above is the detailed content of Ma Soldier spring video data analysis (courseware, source code). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn