当前位置:网站首页>SM integration is as simple as before, and the steps are clear (detailed)
SM integration is as simple as before, and the steps are clear (detailed)
2022-07-29 05:15:00 【It's a quack】
Catalog
2) New projects , choice quickstart Templates
4) modify pom.xml file , Add related dependencies
Add visualization of the database
5) add to MyBatis Corresponding template (SqlMapConfig.xml and XXXMapper.xml file )
7) add to applicationContext_mapper.xml
8) add to applicationContext_service.xml
9) add to Users Entity class ,Accounts Entity class
10) add to mapper package , add to UsersMapper Interface and UsersMapper.xml Document and develop
11) add to service package , add to UsersService Interface and UsersServiceImpl Implementation class
12) Add test classes for functional testing
SSM Integrate
at present Spring+SpringMVC+Mybatis It is a very popular supporting development framework .
spring The core ioc、aop technology ,ioc decoupling , Reuse code , Greatly improved maintainability ,aop Provides section programming , The same increases productivity . Provides integration support for other excellent open source frameworks spring mvc It's the contrast struts2 etc. mvc Framework , Don't say struts2 So many security vulnerabilities , And it's class interception , all Action Variable sharing , At the same time filter Entrance , and spring mvc Is the way to intercept ,controller exclusive request response data , Adopted serlvet entrance , And spring Seamless docking . In terms of development ,spring mvc Lighter and lower entry .mybatis Lightweight semi automated framework ,sql Written by the developer, the statement can be tuned , also mybatis Use XML The way JAVA Code and the SQL It can be decoupled and supports dynamic SQL sentence , The cost of learning is low .
The following is database creation table

SM Integration steps
1) Build table

2) New projects , choice quickstart Templates



3) Modify the catalog

4) modify pom.xml file , Add related dependencies




Add visualization of the database


5) add to MyBatis Corresponding template (SqlMapConfig.xml and XXXMapper.xml file )
6) add to SqlMapConfig.xml file (MyBatis Core profile ), And copy jdbc.propertiest Properties file to resources Under the table of contents

7) add to applicationContext_mapper.xml








8) add to applicationContext_service.xml

9) add to Users Entity class ,Accounts Entity class



10) add to mapper package , add to UsersMapper Interface and UsersMapper.xml Document and develop

11) add to service package , add to UsersService Interface and UsersServiceImpl Implementation class







12) Add test classes for functional testing
Users add a complete set

to account increase 






That's all setting getting and tostring
Keep going On map Interface 












边栏推荐
- Reply from the Secretary of jindawei: the company is optimistic about the market prospect of NMN products and has launched a series of products
- How does WPS use smart fill to quickly fill data? WPS method of quickly filling data
- 带你搞懂 Kubernetes 集群中几种常见的流量暴露方案
- About the configuration and use of thymeleaf
- scikit-learn——机器学习应用开发的步骤和理解
- pytorch学习笔记
- Deadlock to be resolved
- Quick start JDBC
- 浅谈AspectJ框架
- P5714 [deep foundation 3. Case 7] obesity
猜你喜欢

ARFoundation入门教程7-url动态加载图像跟踪库

Northeast University Data Science Foundation (matlab) - Notes

What if the computer cannot open excel? The solution of Excel not opening

How to set row height and column width in excel? The method of setting row height and column width in Excel

The person who goes to and from work on time and never wants to work overtime has been promoted in front of me

Pytorch learning notes

TCP three handshakes and four waves
![[2022 freshmen learning] key points of the third week](/img/21/6a2c4f7e9114260797497d99b75cd6.png)
[2022 freshmen learning] key points of the third week

如何让照片中的人物笑起来?HMS Core视频编辑服务一键微笑功能,让人物笑容更自然
![[wechat applet -- solve the alignment problem of the last line of display:flex. (discontinuous arrangement will be divided into two sides)]](/img/ee/b424d876c64dac652d76f9f26e4b20.png)
[wechat applet -- solve the alignment problem of the last line of display:flex. (discontinuous arrangement will be divided into two sides)]
随机推荐
【文件下载】Easyexcel快速上手
roLabelImg转DATO格式数据
2021-10-11
ARFoundation入门教程10-平面检测和放置
怎样监测微型的网站服务
Google GTEST event mechanism
【2022新生学习】第三周要点
Double type nullpointexception in Flink flow calculation
Office提示系统配置无法运行怎么办?
使用Jstack、Jconsole和jvisualvm进行死锁分析
Create a mindscore environment in modelars, install mindvision, and conduct in-depth learning and training (Huawei)
Apache POI实现Excel导入读取数据和写入数据并导出
如何让照片中的人物笑起来?HMS Core视频编辑服务一键微笑功能,让人物笑容更自然
WPS插入超链接无法打开,提示“无法打开指定文件”怎么办!
The person who goes to and from work on time and never wants to work overtime has been promoted in front of me
Google gtest事件机制
Understand activity workflow
How to add traffic statistics codes to the legendary Development Zone website
What servers are needed to build mobile app
Getting started with solidity
















