当前位置:网站首页>SSM整合初步 所得细节
SSM整合初步 所得细节
2022-06-13 10:29:00 【ahyo】
新建maven项目 导入必要依赖 创建数据库及其表 连接数据库
Java基本结构和配置框架
配置文件框架:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
</configuration>
注意:标签<!DOCTYPE 其后是指定该xml文件为什么而配置 比如是mapper绑定或者上者的资源配置
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
bean.xml具体框架:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
">
</beans>
spring_config.xml spring 配置基本框架:
具体详见SSM project
MyBatis_config.xml框架:
<?xml version="1.0" encoding="UTF8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<!--配置核心文件-->
<configuration>
<mapper></mapper>
</configuration>
边栏推荐
- C# Oracle 多表查询
- On the exploitation of a horizontal ultra vires vulnerability
- Deploy vscode on kubernetes cluster
- 信息文档管理与配置管理
- 【云享新鲜】社区周刊·Vol.66-华为伙伴暨开发者大会2022精彩议程公布
- Actual combat simulation │ real time error alarm of enterprise wechat robot
- 全栈开发实战|SSM框架整合开发
- 实战模拟│企业微信机器人实时报错预警
- C# 11 更加实用的 nameof
- 2022甘肃省安全员C证上岗证题目及在线模拟考试
猜你喜欢
电解电容、钽电容、普通电容
Node-RED系列(二七):扩展节点之s7节点的使用说明
Go zero microservice Practice Series (III. API definition and table structure design)
[image denoising] image denoising based on MATLAB Gaussian + mean + median + bilateral filtering [including Matlab source code 1872]
信息文档管理与配置管理
五分钟内编写Pytorch模型
Install Kubernetes 1.24
Double carbon in every direction: green demand and competition focus in the calculation from the east to the West
deepin系统中Qt5.12无法输入中文(无法切换中文输入法)解决办法
Introduction to knowledge map
随机推荐
Node red series (25): integrate Gaode map and realize 3D map and track playback
Memory management -- Viewing memory space from the perspective of executing programs and processes
Initial installation and use of redis [play with Huawei cloud]
WebRTC服务端工程实践和优化探索
WIN7无法被远程桌面问题
MySQL到底怎么优化?
How to calculate ASCII code value and how to calculate arccos value
程序设计原则
Knowledge points of silicon steel sheet
Computing cyclic redundancy codes -- excerpts
在 Kubernetes 集群上部署 VSCode
Install Kubernetes 1.24
一篇文章读懂:Spark运行模式
C# Oracle 多表查询
记一次水平越权漏洞的利用
vivo大规模 Kubernetes 集群自动化运维实践
苹果放大招!这件事干的太漂亮了……
Cynthia項目缺陷管理系統
【轴承故障分解】基于matlab ITD轴承故障信号分解【含Matlab源码 1871期】
Simple query cost estimation [Gauss is not a mathematician this time]