基于jsp+java的音乐网站

Posted qq_1262330535

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于jsp+java的音乐网站相关的知识,希望对你有一定的参考价值。

介绍:
jsp+servlet+mysql+eclipse技术

效果截图:








数据库表:
CREATE TABLE admin (
id int(11) NOT NULL AUTO_INCREMENT,
adminName varchar(20) COLLATE utf8_bin DEFAULT NULL,
adminPwd varchar(20) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;


– Records of admin


INSERT INTO admin VALUES (‘1’, ‘admin’, ‘admin’);
INSERT INTO admin VALUES (‘2’, ‘1’, ‘1’);


– Table structure for collection


DROP TABLE IF EXISTS collection;
CREATE TABLE collection (
CollectionId int(11) NOT NULL AUTO_INCREMENT,
CollectionName varchar(20) COLLATE utf8_bin DEFAULT NULL,
userId int(11) DEFAULT NULL,
PRIMARY KEY (CollectionId)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;


– Records of collection


INSERT INTO collection VALUES (‘7’, ‘收藏列表’, ‘5’);
INSERT INTO collection VALUES (‘8’, ‘收藏列表’, ‘7’);
INSERT INTO collection VALUES (‘9’, ‘收藏列表’, ‘10’);
INSERT INTO collection VALUES (‘10’, ‘收藏列表’, ‘11’);


– Table structure for collectionlist


DROP TABLE IF EXISTS collectionlist;
CREATE TABLE collectionlist (
CollectionId int(11) DEFAULT NULL,
musicId int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;


– Records of collectionlist


INSERT INTO collectionlist VALUES (‘8’, ‘6’);
INSERT INTO collectionlist VALUES (‘8’, ‘3’);
INSERT INTO collectionlist VALUES (‘8’, ‘3’);
INSERT INTO collectionlist VALUES (‘8’, ‘3’);
INSERT INTO collectionlist VALUES (‘8’, ‘10’);
INSERT INTO collectionlist VALUES (‘8’, ‘10’);
INSERT INTO collectionlist VALUES (‘8’, ‘10’);
INSERT INTO collectionlist VALUES (‘8’, ‘7’);
INSERT INTO collectionlist VALUES (‘8’, ‘7’);
INSERT INTO collectionlist VALUES (‘8’, ‘7’);
INSERT INTO collectionlist VALUES (‘8’, ‘4’);
INSERT INTO collectionlist VALUES (‘8’, ‘4’);
INSERT INTO collectionlist VALUES (‘8’, ‘4’);
INSERT INTO collectionlist VALUES (‘9’, ‘3’);
INSERT INTO collectionlist VALUES (‘9’, ‘3’);
INSERT INTO collectionlist VALUES (‘9’, ‘3’);
INSERT INTO collectionlist VALUES (‘9’, ‘3’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘10’, ‘5’);
INSERT INTO collectionlist VALUES (‘10’, ‘3’);
INSERT INTO collectionlist VALUES (‘10’, ‘7’);
INSERT INTO collectionlist VALUES (‘10’, ‘9’);
INSERT INTO collectionlist VALUES (‘10’, ‘11’);
INSERT INTO collectionlist VALUES (‘10’, ‘4’);
INSERT INTO collectionlist VALUES (‘10’, ‘6’);
INSERT INTO collectionlist VALUES (‘10’, ‘15’);
INSERT INTO collectionlist VALUES (‘10’, ‘15’);
INSERT INTO collectionlist VALUES (‘10’, ‘15’);
INSERT INTO collectionlist VALUES (‘10’, ‘13’);
INSERT INTO collectionlist VALUES (‘10’, ‘15’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);
INSERT INTO collectionlist VALUES (‘9’, ‘6’);


– Table structure for music


DROP TABLE IF EXISTS music;
CREATE TABLE music (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(50) COLLATE utf8_bin DEFAULT NULL,
photoURL varchar(50) COLLATE utf8_bin DEFAULT NULL,
singerID int(11) DEFAULT NULL,
Hot int(11) DEFAULT NULL,
lyricURL varchar(50) COLLATE utf8_bin DEFAULT NULL,
typeId int(11) DEFAULT NULL,
songURL varchar(50) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

以上是关于基于jsp+java的音乐网站的主要内容,如果未能解决你的问题,请参考以下文章

JSP基础

Jsp获取Java的重定向赋值(String)

Tomcat根据JSP生成Servlet机制解析

day06-jsp

基于java+jsp+ssm足球新闻发布网站

Java+JSP+MySQL基于SSM的智能推荐商城系统