博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssm基础配置
阅读量:4708 次
发布时间:2019-06-10

本文共 4655 字,大约阅读时间需要 15 分钟。

1.导包

1   
2 3
4
org.springframework
5
spring-webmvc
6
3.2.8.RELEASE
7
8 9
10
org.springframework
11
spring-tx
12
3.2.8.RELEASE
13
14 15
16
org.springframework
17
spring-web
18
3.2.8.RELEASE
19
20 21
22
org.codehaus.jackson
23
jackson-mapper-asl
24
1.9.13
25
26 27
28
com.fasterxml.jackson.core
29
jackson-annotations
30
2.9.7
31
32 33
34
com.fasterxml.jackson.core
35
jackson-core
36
2.9.7
37
38 39
40
org.springframework
41
spring-jdbc
42
3.2.8.RELEASE
43
44 45
46
commons-dbcp
47
commons-dbcp
48
1.4
49
50 51
52
mysql
53
mysql-connector-java
54
5.0.8
55
56 57
58
org.mybatis
59
mybatis
60
3.3.0
61
62 63
64
org.mybatis
65
mybatis-spring
66
1.2.3
67
68 69
70
junit
71
junit
72
4.12
73
74 75
pom.xml

2.spring配置文件

1 
2
16 17
18
19 20
21
22 23
24
26
27
28 29 30
31
32
33
34
35
36
37
38
39
40 41
42
43
spring-mvc.xml

3.mybatis配置文件

1 
2
16 17
18
19
20
21
classpath:config/jdbc.properties
22
23
24
25
26 27
28
29
30
31
32
33
34
35 36
37
38
39
40
41
42
43 44
45
46
47
48
49
50
51
spring-mybatis.xml

4.jdbc配置文件

1 #MySQL数据库2 mysql.driverClassName=com.mysql.jdbc.Driver3 mysql.url=jdbc:mysql://localhost/erp?useUnicode=true&characterEncoding=utf8&useSSL=false&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true4 mysql.username=root5 mysql.password=123456
jdbc.properties

5.web.xml文件配置

1  
2
3
contextConfigLocation
4
classpath:config/xml/spring-*.xml
5
6
7
org.springframework.web.context.ContextLoaderListener
8
9 10
11
12
mvc
13
org.springframework.web.servlet.DispatcherServlet
14
15
contextConfigLocation
16
classpath:config/xml/spring-*.xml
17
18
1
19
20
21
mvc
22
*.do
23
web.xml

 6.项目结构图

转载于:https://www.cnblogs.com/goatherd/p/10813409.html

你可能感兴趣的文章
iOS应用日志:开始编写日志组件与异常日志
查看>>
Linux通过NFS实现文件共享
查看>>
java安装1.8和1.7,报错:Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVers...
查看>>
iOS多线程编程之NSOperation和NSOperationQueue的使用(转自容芳志专栏)
查看>>
svn不能添加.a文件的解决方法
查看>>
15模块-Maps【管理地图控件】
查看>>
[转]crontab命令指南
查看>>
vue 二级列表折叠面板
查看>>
ClientValidationEnabled
查看>>
Linux 硬盘分区、分区、删除分区、格式化、挂载、卸载
查看>>
Jam - an open-source build system
查看>>
编写一个程序,将d:\java目录下的所有.java文件复制到d:\jad目录下,并将原来文件的扩展名从.java改为.jad。...
查看>>
Mysql命令大全
查看>>
nginx.conf 基础配置
查看>>
centos创建文件命令
查看>>
【php】 php能做什么
查看>>
VTK初学一,比较常见的错误2
查看>>
结队-贪吃蛇-项目进度
查看>>
Axure自动备份功能!让意外不在可怕!
查看>>
robot Framework实战
查看>>