SSH架构的原始配置

准备工作:新建一个纯的JavaWeb项目(命名为ssh)

  (1)新建resources资源目录,新建webapp目录(webapp下新建lib目录,classes目录,以及web.xml文件)

  (2)对项目ssh做buildpath,选择classes为字节码文件存放目录

  (3)resources资源目录下复制db.properties文件和applicationContext.xml文件

1 #key-value
2 jdbc.driverClassName=com.mysql.jdbc.Driver
3 jdbc.url=jdbc:mysql://localhost:3306/springDemo
4 jdbc.username=root
5 jdbc.password=admin
6 jdbc.maxActive=5
db.properties

相关文章: