Java教程

基于java+jsp的音乐网站

本文主要是介绍基于java+jsp的音乐网站,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

介绍:
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;

这篇关于基于java+jsp的音乐网站的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!