项目需求分析:
注册用户可以发表、管理公告
注册用户可以管理信息和密码
数据库使用SQLserver,源代码编写使用eclipse-EE
use BBS
create table BBSUser
(
id int primary key identity(1,1),
username nvarchar(50) not null,
password nvarchar(50)
not null,
sex bit ,
email nvarchar(50),
birthday datetime
)
create table BBSMessage
(
id int primary key identity(1,1),
auther int
not null,
info nvarchar(600),
published datetime
)
eclipse中新建Dynamic Web Project项目,命名为BBS,编码为UTF-8。
按命名标准建立4个包:com.dedo.BBS.DateBean、com.dedo.BBS.Jdbc、com.dedo.BBS.servlet、com.dedo.BBS.Tool