原文:SSH下的投票系统
源代码下载地址:http://www.zuidaima.com/share/1550463721196544.htm
SSH下的投票系统,值得研究,内有数据库
注意修改WebRoot/WEB-INF/applicationContext.xml数据库连接为自己本地的配置!
01 |
<!-- |
02 |
< bean id = "dataSource" |
03 |
class = "com.mchange.v2.c3p0.ComboPooledDataSource" |
04 |
destroy-method = "close" > |
05 |
<!-- |
06 |
< property name = "driverClass" value = "com.mysql.jdbc.Driver" /> |
07 |
<!-- |
08 |
< property name = "jdbcUrl" value = "jdbc:mysql://localhost:3306/vote" /> |
09 |
<!-- |
10 |
< property name = "user" value = "root" /> |
11 |
< property name = "password" value = "111111" /> |
12 |
</ bean > |
登陆页面http://localhost:端口号/项目名称/login.jsp
登陆成功后首页
创建投票
查找投票
另外缺少jar包:
http://www.zuidaima.com/jar/search/servlet-api-2.4.htm
时间: 2024-10-09 21:40:21