标签:
其实就是增删改查,分页框架,工厂类,拦截器;
drop database IF EXISTS itat_msg; create database itat_msg; use itat_msg; create table t_user( id int(10) primary key auto_increment, username varchar(100), password varchar(100), nickname varchar(100), status int(3), type int(3) );
create table t_msg( id int(10) primary key auto_increment, title varchar(255), content text, post_date datetime, user_id int(10), CONSTRAINT FOREIGN KEY(user_id) REFERENCES t_user(id) );
create table t_comment( id int(10) primary key auto_increment, content text, post_date datetime, user_id int(10), msg_id int(10), CONSTRAINT FOREIGN KEY(user_id) REFERENCES t_user(id), CONSTRAINT FOREIGN KEY(msg_id) REFERENCES t_msg(id) ); GRANT ALL ON itat_msg.* to ‘itat‘@‘localhost‘ IDENTIFIED BY ‘itat123‘;
http://files.cnblogs.com/files/C3054/%E5%A4%8D%E4%B9%A0%E4%BA%86%E4%B8%8Bjsp.zip
标签:
原文地址:http://www.cnblogs.com/C3054/p/5233387.html