亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ssh+mysql實現的Java web論壇系統源碼

發布時間:2020-04-03 00:12:01 來源:網絡 閱讀:440 作者:wx5a449cda7fb6f 欄目:軟件技術

今天給大家來演示一下一款有spring+struts2+hibernate+mysql實現的Java web論壇系統源碼,本系統功能類似與csdn論壇,用戶發帖時可以設置積分,當結帖時可以選擇給評論的用戶給與相應的分值,功能非常完善,已經接近可以直接上線使用的地步了,關于怎么修改頁面的logo和版權信息我在視頻最后面講了,想改的可以參考修改。項目源碼和視頻指導運行教程獲取方式在最下方視頻演示 

包的文件目錄結構:

ssh+mysql實現的Java web論壇系統源碼

數據庫腳本 下載實例

/*
SQLyog Ultimate v12.08 (64 bit)
MySQL - 5.5.53 : Database - db_bbs_forum
*********************************************************************
*/


/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`db_bbs_forum` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;

USE `db_bbs_forum`;

/*Table structure for table `t_announce` */

DROP TABLE IF EXISTS `t_announce`;

CREATE TABLE `t_announce` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `announcement` longtext,
  `title` varchar(100) DEFAULT NULL,
  `newtime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

/*Data for the table `t_announce` */

insert  into `t_announce`(`id`,`announcement`,`title`,`newtime`) values (1,'<p>額外的多所所多所多多所多所多所撒大聲地的所多所說三道四多多所多所所多撒大聲地的多所所多多所多所是多大的多多多多多多多多多多多所</p>','去去去','2017-10-09 16:39:38'),(2,'<p>大神大神多所多所多所多所多所多是多大的多多多多多多多多多多多多多多多多多多多多多多多的點點滴滴多付但事實上所所所所所所所所所所所所所所所所所所所所所所所所</p>','大多數','2017-10-09 16:39:50'),(3,'<p style=\"text-indent: 37px; text-align: justify; line-height: 1.75em;\"><span style=\";font-size:19px;font-family:&#39;宋體&#39;\"></span></p><p style=\"text-indent: 37px; text-align: justify; line-height: 1.75em;\"><span style=\";font-size:19px;font-family:&#39;宋體&#39;\">大家可以向作者提出自己對本論壇的建議,為本論壇獻出自己的一份力量,作者會非常樂意接收大家對本論壇的有利的意見,謝謝!</span></p><p style=\"text-indent: 37px; text-align: justify; line-height: 1.75em;\"><span style=\";font-size:19px;font-family:&#39;宋體&#39;\">反饋意見可以到本系統作者發表的的一個帖子“<span style=\"color:#ff0000\">關于本論壇的建議</span>”進行評論,謝謝大家的支持!</span></p><p style=\"text-indent: 37px; text-align: justify; line-height: 1.75em;\"><span style=\";font-size:19px;font-family:&#39;宋體&#39;\"></span><br/></p><p><br/></p>','反饋作者','2017-10-09 16:35:25'),(4,'<p style=\"line-height: 1.5em;\"><span style=\"color: rgb(255, 0, 0);\">&nbsp; &nbsp; 本論壇目前一段時間正用于測試,還未投入正式使用當中,用戶使用過程可能會遇到一些問題,請大家去“大家來找茬”這篇帖子提出自己遇到的問題,方便論壇管理員維護,謝謝!</span></p><p style=\"line-height: 1.5em;\"><span style=\"color: rgb(255, 0, 0);\">&nbsp; &nbsp; 用戶使用請注意,一段時間后會將所有數據清空,請用戶保存好資料!</span></p><p style=\"line-height: 1.5em;\"><span style=\"color: rgb(255, 0, 0);\">&nbsp;&nbsp;&nbsp; 再次感謝大家的關注!</span></p>','系統測試','2017-10-09 16:35:19'),(5,'<p style=\"line-height: 1.5em;\"><span style=\";font-size:14px;font-family:&#39;宋體&#39;\">隱私和版權:</span></p><p style=\"text-indent: 28px; line-height: 1.5em;\"><span style=\";font-size:14px;font-family:&#39;宋體&#39;\">為保證論壇正常發展,規避意外風險,從而向廣大用戶提供更優質的服務,故此特設版權聲明。為保證您的知識產權不被侵犯,</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">建議您在接受本站服務之前,請務必仔細閱讀</span><span style=\";font-size:14px;font-family:&#39;宋體&#39;\">。</span></p><p style=\"line-height: 1.5em;\"><span style=\"font-size:14px;font-family:&#39;宋體&#39;\">1、</span><span style=\";font-size:14px;font-family:&#39;宋體&#39;\">本站將按照法律規定刪除違法信息,并一概不受理當事方或委托方的相關投訴。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">2、</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">所有在本網站發布的轉載文章,必須事先征得原作者同意,且注明原作者姓名和文章來源,如有侵權或違法行為,本網站不承擔任何法律責任;所有文章僅代表作者個人的觀點和立場,其侵權或違法行為的責任由作者本人承擔。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">3、&nbsp;凡本網站上所有的文字、圖片和音頻、視頻稿件,任何媒體、網站或個人未經本網站協議授權不得轉載、鏈接、轉貼或以其他方式復制發表,如有需要,請與本網站聯系相關事宜。違者本網站將追究其法律責任。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">4、&nbsp;</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">本站</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">所刊載的文章資料、圖片、圖表、數據僅供參考使用,所刊登的廣告,均為廣告商的個人意見及表達方式,和本網站無任何關系,如有侵權或違法行為應由其相關廣告商承擔責任。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">5、&nbsp;用戶在本站注冊時,本網站將在您的同意及確認下,通過注冊表格等形式要求您提供一些個人私密資料,在未經用戶本人同意的情況下,本站絕對不會將用戶的任何資料泄露給第三方。但當政府部門、司法機關依照法定程序要求本網站披露時或不可抗力除外。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">6</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">、&nbsp;凡以任何方式登陸本網站或直接、間接使用本網站資料者,視為自愿接受本項聲明的約束。</span></p><p style=\"text-align: left; line-height: 1.5em;\"><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">7</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">、&nbsp;如果您有任何疑問,請與我們聯系</span><span style=\";color:rgb(0,0,0);font-weight:normal;font-style:normal;font-size:14px;font-family:&#39;宋體&#39;\">。</span></p><p><br/></p>','隱私和版權','2017-10-09 16:35:12'),(8,'<p>新用戶一定要活躍!</p><p>新用戶一定要活躍!</p><p>新用戶一定要活躍!</p><p>新用戶一定要活躍!</p><p>新用戶一定要活躍!</p><p>新用戶一定要活躍!</p>','新用戶注意了','2018-05-14 14:23:16');

/*Table structure for table `t_category` */

DROP TABLE IF EXISTS `t_category`;

CREATE TABLE `t_category` (
  `id` int(11) NOT NULL,
  `name` varchar(30) DEFAULT NULL,
  `count_topics` int(11) DEFAULT '0',
  `count_comments` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `t_category` */

insert  into `t_category`(`id`,`name`,`count_topics`,`count_comments`) values (1,'編程語言',2,1),(2,'前端技術',3,8),(3,'Java Web',4,14),(4,'應用框架',1,1),(5,'移動開發',0,0),(6,'綜合技術',1,0),(7,'開發工具',1,4),(8,'論壇雜談',6,53),(9,'共享專區',3,7),(10,'智慧點點',0,0);

/*Table structure for table `t_comment` */

DROP TABLE IF EXISTS `t_comment`;

CREATE TABLE `t_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` longtext,
  `floor` int(11) DEFAULT NULL,
  `comment_time` datetime DEFAULT NULL,
  `comments_user_id` int(11) NOT NULL,
  `comments_topic_id` int(11) NOT NULL,
  `integral` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `comments_topic_id` (`comments_topic_id`) USING BTREE,
  KEY `comments_user_id` (`comments_user_id`),
  CONSTRAINT `comments_topic_id` FOREIGN KEY (`comments_topic_id`) REFERENCES `t_topic` (`id`),
  CONSTRAINT `comments_user_id` FOREIGN KEY (`comments_user_id`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=utf8;

/*Data for the table `t_comment` */

insert  into `t_comment`(`id`,`content`,`floor`,`comment_time`,`comments_user_id`,`comments_topic_id`,`integral`,`status`) values (1,'<p>大贊樓主<img src=\"http://img.baidu.com/hi/jx2/j_0057.gif\"/></p>',1,'2014-08-22 18:06:01',2,2,9,0),(2,'<p>這里弄得簡單了一點,還有很多沒有考慮到哦<img src=\"http://img.baidu.com/hi/jx2/j_0028.gif\"/></p>',1,'2014-08-22 18:06:46',2,1,5,0),(3,'<p>比如說空格字符串處理:假設需要處理的字符串為str,添加一句str.replace(/(&amp;nbsp;)|\\s|\\u00a0/g, &#39;&#39;);可以去掉空格</p>',2,'2014-08-22 18:08:27',2,1,5,0),(4,'<p>感謝各位捧場,哈哈哈<img src=\"http://img.baidu.com/hi/jx2/j_0028.gif\"/></p>',2,'2014-08-22 10:26:29',1,2,0,0),(5,'<p>不錯不錯,學習了<img src=\"http://img.baidu.com/hi/jx2/j_0019.gif\"/></p>',3,'2014-08-22 10:26:51',1,1,0,0),(6,'<p>我自己來一個,IE兼容模式好像效果很差</p>',1,'2014-08-22 10:34:23',1,5,0,1),(7,'<p>我自己來一個,IE兼容模式好像效果很差</p>',1,'2014-08-22 10:34:26',1,5,0,1),(8,'<p>我自己來一個,IE兼容模式好像效果很差</p>',1,'2014-08-22 10:34:28',1,5,0,1),(9,'<p>我自己來一個,IE兼容模式好像效果很差</p>',1,'2014-08-22 10:34:27',1,5,0,0),(10,'<p>我自己來一個,IE兼容模式好像效果很差</p>',1,'2014-08-22 10:34:19',1,5,0,1),(11,'<p>訪問好慢啊,連續點了幾次就成樓上這樣了</p>',3,'2014-08-22 10:35:35',1,5,0,0),(12,'<p>剛剛出問題了,這篇帖子的樓層請忽略<br/></p>',4,'2014-08-22 10:39:00',2,5,0,0),(13,'<p>這是web容器生成的servlet代碼中有out.write(””),這個和JSP中調用的response.getOutputStream()產生沖突.</p><p>&nbsp;\r\n &nbsp; 即Servlet規范說明,不能既調用 \r\nresponse.getOutputStream(),又調用response.getWriter(),無論先調用哪一個,在調用第二個時候應會拋出\r\n \r\nIllegalStateException,因為在jsp中,out變量是通過response.getWriter得到的,在程序中既用了\r\nresponse.getOutputStream,又用了out變量,故出現以上錯誤。</p><p><a _src=\"http://www.shangxueba.com/jingyan/1862380.html\" href=\"http://www.shangxueba.com/jingyan/1862380.html\">http://www.shangxueba.com/jingyan/1862380.html</a><br/></p><p><br/></p><p><br/></p><p>剛剛找到的,看能不能解決你的問題<br/> </p>',1,'2014-08-22 10:42:12',2,6,0,0),(14,'<p>前端可以看js的擴展類庫,比如jquery,EXTjs,easyui等</p><p>框架的話可以了解spring mvc,目前還比較流行,總之很多啦<br/></p>',1,'2014-08-22 10:44:15',2,7,0,0),(15,'<p>圖片上傳有問題<br/></p>',5,'2014-08-22 10:46:13',1,5,0,0),(16,'<p>引用功能只有留言框上的可以使用<br/></p>',6,'2014-08-22 10:46:33',1,5,0,0),(17,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 6 樓 塵封記憶的十月 的回復</legend>\r\n										<p>引用功能只有留言框上的可以使用<br/></p>\r\n									</fieldset><p>收回,在firefox里面好像可以<br/></p>',7,'2014-08-22 10:47:12',1,5,0,0),(18,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 7 樓 塵封記憶的十月 的回復</legend>\r\n										<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 6 樓 塵封記憶的十月 的回復</legend>\r\n										<p>引用功能只有留言框上的可以使用<br/></p>\r\n									</fieldset><p>收回,在firefox里面好像可以<br/></p>\r\n									</fieldset><p>不對,好像是只能引用自己的。。。<br/></p>',8,'2014-08-22 10:48:08',1,5,0,0),(19,'<p>鏈接進不去<img src=\"http://img.baidu.com/hi/jx2/j_0016.gif\"/></p>',1,'2014-08-22 10:48:51',1,8,0,0),(20,'<p>好東西啊<img src=\"http://img.baidu.com/hi/jx2/j_0069.gif\"/></p>',1,'2014-08-22 10:58:38',4,9,0,0),(21,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 1 樓 塵封記憶的十月 的回復</legend>\r\n										<p>鏈接進不去<img src=\"http://img.baidu.com/hi/jx2/j_0016.gif\"/></p>\r\n									</fieldset><p>這鏈接不管用,求樓主重發<br/></p>',2,'2014-08-22 11:00:00',4,8,0,0),(22,'<p><span style=\"line-height: 0px;\">?</span><a href=\"http://pan.baidu.com/s/1sjnsCBb\">http://pan.baidu.com/s/1sjnsCBb</a></p><p>&nbsp;</p><p>剛更正的公開鏈接&nbsp; 嘻嘻 前面的不好意思啊</p><p>&nbsp;</p>',3,'2014-08-22 11:01:35',3,8,0,0),(23,'<p>學習了&nbsp;&nbsp; <img src=\"http://img.baidu.com/hi/jx2/j_0058.gif\"/></p>',3,'2014-08-22 11:01:39',4,2,1,0),(24,'<p>不錯,學習了<img src=\"http://img.baidu.com/hi/jx2/j_0059.gif\"/></p>',2,'2014-08-22 11:02:40',4,7,0,0),(25,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 3 樓 我一直在這兒 的回復</legend>\r\n										<p><span style=\"line-height: 0px;\">?</span><a href=\"http://pan.baidu.com/s/1sjnsCBb\">http://pan.baidu.com/s/1sjnsCBb</a></p><p>&nbsp;</p><p>剛更正的公開鏈接&nbsp; 嘻嘻 前面的不好意思啊</p><p>&nbsp;</p>\r\n									</fieldset><p>不錯,感謝樓主分享<img src=\"http://img.baidu.com/hi/jx2/j_0069.gif\"/></p>',4,'2014-08-22 11:03:25',4,8,0,0),(26,'<p>驗證碼。俺們還沒弄過的,學習學習<br/></p>',2,'2014-08-22 11:04:17',4,6,0,0),(27,'<p>這東西太混雜了,一般都是用的時候俺們才會去查<img src=\"http://img.baidu.com/hi/jx2/j_0028.gif\"/></p>',1,'2014-08-22 11:05:23',4,3,10,0),(28,'<p>自己來頂啊<br/></p>',1,'2014-08-22 11:07:32',4,10,0,0),(29,'<p>怎么沒人來交朋友啊<br/></p>',2,'2014-08-22 11:08:24',4,10,0,0),(30,'<p>謝謝二樓 !!!!!!!!!&nbsp;&nbsp; 哈哈哈</p>',3,'2014-08-22 11:10:41',3,6,0,0),(31,'<p>嘿嘿,報個到<br/></p>',3,'2014-08-22 11:11:29',5,10,0,0),(32,'<p>嘿嘿,不錯<img src=\"http://img.baidu.com/hi/jx2/j_0037.gif\"/></p>',2,'2014-08-22 11:12:29',5,9,0,0),(33,'<p><img src=\"http://img.baidu.com/hi/jx2/j_0037.gif\"/>樓主真偉大</p>',5,'2014-08-22 11:12:59',5,8,0,0),(34,'<p>恩恩&nbsp;謝謝一樓!!!有用<br/></p>',3,'2014-08-22 11:21:53',3,7,0,0),(35,'<p>一起學習哈</p>',4,'2014-08-22 11:53:16',1,2,0,0),(36,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 7 樓 塵封記憶的十月 的回復</legend>\r\n										<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 6 樓 塵封記憶的十月 的回復</legend>\r\n										<p>引用功能只有留言框上的可以使用<br/></p>\r\n									</fieldset><p>收回,在firefox里面好像可以<br/></p>\r\n									</fieldset><p>是因為昵稱包含&#39;號<br/></p>',9,'2014-08-22 20:27:03',2,5,0,0),(37,'<p>嘿嘿,大家一起學習<br/></p>',3,'2014-08-22 20:36:25',2,9,0,0),(38,'<p><img src=\"http://img.baidu.com/hi/jx2/j_0059.gif\"/></p><p style=\"line-height: 16px;\"><img src=\"http://localhost:8080/DS-Java/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif\"/><a href=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140822/70861408711229911.zip\">99csv2.3.0.0.zip</a></p><p>嘿嘿,分享個軟件,無準考證查四六級<br/></p>',4,'2014-08-22 20:40:56',2,9,0,0),(39,'<p>編號12137前來報到&nbsp; 請您指示!<img src=\"http://img.baidu.com/hi/jx2/j_0019.gif\"/></p>',7,'2014-08-22 12:44:06',3,10,0,0),(40,'<p><img src=\"http://images.junostatic.com/full/CS1710572-02B-BIG.jpg\"/>&nbsp;&nbsp;&nbsp;&nbsp;</p>',5,'2014-08-22 12:44:40',2,9,0,0),(41,'<p>還有很多問題呢</p>',10,'2014-08-22 14:09:45',1,5,0,0),(42,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 10 樓 塵封記憶的十月 的回復</legend>\r\n										<p>還有很多問題呢</p>\r\n									</fieldset><p>確實<br/></p>',11,'2014-08-22 22:11:27',2,5,0,0),(43,'<p>繼續來找茬<br/></p>',12,'2014-08-22 22:25:28',2,5,0,0),(44,'<p>湊個熱鬧啊<br/></p>',10,'2014-08-22 22:38:59',1,10,0,0),(45,'<p>過來了哈哈哈<br/></p>',11,'2014-08-22 22:41:24',1,10,0,0),(46,'<p>先把消息提示取消掉<br/></p>',12,'2014-08-22 22:42:53',1,10,0,0),(47,'<p>還差兩個啊<br/></p>',13,'2014-08-22 22:43:36',1,10,0,0),(48,'<p>還有一個,嘿嘿<br/></p>',14,'2014-08-22 22:43:52',1,10,0,0),(49,'<p>哈哈哈哈哈哈哈哈哈</p>',6,'2014-08-22 17:41:21',1,8,0,0),(50,'<p>積分可以少于10了???</p><p>居然就5分,不答了</p>',1,'2014-08-23 01:37:06',3,12,0,0),(51,'<p>哈哈,改了一下<br/></p>',2,'2014-08-23 01:39:03',1,12,0,0),(52,'<p>圖片上傳已搞定</p>',13,'2014-08-23 01:49:38',1,5,0,0),(53,'<p>1.上傳圖片(頭像)</p><p>2.在回復信息時圖片加不上去</p><p>3.結貼時總是無法分配積分</p><p>4.用戶稱號需要改成動態的</p><p>5.點擊用戶名以后出現的界面里,用戶信息中發帖數不是動態的,一直是0</p><p></p>',14,'2014-08-23 03:23:06',3,5,0,0),(54,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 14 樓 我一直在這兒 的回復</legend>\r\n										<p>1.上傳圖片(頭像)</p><p>2.在回復信息時圖片加不上去</p><p>3.結貼時總是無法分配積分</p><p>4.用戶稱號需要改成動態的</p><p>5.點擊用戶名以后出現的界面里,用戶信息中發帖數不是動態的,一直是0</p><p><br/></p>\r\n									</fieldset><ol class=\" list-paddingleft-2\" style=\"list-style-type: decimal;\"><li><p>上傳圖片(頭像)搞定了,因為img標簽中文名顯示問題,可能跟那里的tomcat的配置有關系</p></li></ol><p>2.在回復信息時圖片加不上去,這個要上傳的,不能直接黏貼,但是以前我好像黏貼起來過,現在。。。。</p><p>3.結貼時總是無法分配積分,不會啊,分配積分需要分配完,不然不能成功的,那里用到了js驗證</p><p>4.用戶稱號需要改成動態的,,,,,這個<img src=\"http://img.baidu.com/hi/jx2/j_0019.gif\"/><br/></p><p>5.點擊用戶名以后出現的界面里,用戶信息中發帖數不是動態的,一直是0&nbsp; 已修復,后臺代碼問題<br/></p>',15,'2014-08-23 13:28:59',1,5,0,0),(55,'<p><span style=\"font-family: 微軟雅黑; font-size: medium; background-color: rgb(248, 248, 248);\">我自己來一個,IE兼容模式好像效果很差</span></p>',1,'2014-08-23 05:49:50',1,13,0,0),(56,'<p><span style=\"font-family: 微軟雅黑; font-size: medium; background-color: rgb(248, 248, 248);\">圖片上傳有問題</span></p>',2,'2014-08-23 05:51:05',1,13,0,0),(57,'<p>引用功能有問題</p>',3,'2014-08-23 05:51:13',1,13,0,0),(58,'<p>回復不能黏貼圖片</p>',4,'2014-08-23 05:51:31',1,13,0,0),(59,'<p><span style=\"line-height: 0px;\">?</span><br/>2.在回復信息時圖片加不上去</p>',5,'2014-08-23 05:52:09',3,13,0,0),(60,'<p><img src=\"http://giun.vxg197.10000net.cn/ueditor/jsp/\"/>圖片黏貼的效果</p>',6,'2014-08-23 05:52:17',1,13,0,0),(61,'<p><span style=\"line-height: 0px;\">?</span>4.用戶稱號需要改成動態的</p>',7,'2014-08-23 05:52:20',3,13,0,0),(62,'<p><span style=\"line-height: 0px;\">?</span>點擊用戶名以后出現的界面里,用戶信息中發帖數不是動態的,一直是0</p><p>&nbsp;</p>',8,'2014-08-23 05:52:36',3,13,0,0),(63,'<p>評論圖片上傳出現問題</p>',9,'2014-08-23 05:54:03',1,13,0,0),(64,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 8 樓 我一直在這兒 的回復</legend>\r\n										<p><span style=\"line-height: 0px;\">?</span>點擊用戶名以后出現的界面里,用戶信息中發帖數不是動態的,一直是0</p><p>&nbsp;</p>\r\n									</fieldset><p>這里改好了,只不過是以前的數據干擾了</p>',10,'2014-08-23 05:55:04',1,13,0,0),(65,'<p>圖片上傳可以啊<img src=\"http://giun.vxg197.10000net.cn/ueditor/jsp/upload1/20140823/49811408783863609.jpg\" title=\"Koala.jpg\"/></p>',11,'2014-08-23 08:51:06',5,13,0,0),(66,'<p>那個視頻播放不了</p>',12,'2014-08-23 08:51:32',5,13,0,0),(67,'<p><img src=\"http://giun.vxg197.10000net.cn/ueditor/jsp/upload1/20140823/70571408783910734.png\"/></p><p>黏貼圖片也可以啊</p>',13,'2014-08-23 08:52:04',5,13,0,0),(68,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 3 樓 塵封記憶的十月 的回復</legend>\r\n										<p>引用功能有問題</p>\r\n									</fieldset><p>這個也可以呢</p>',14,'2014-08-23 08:52:35',5,13,0,0),(69,'<p>是不是這些問題都解決了啊,我怎么感覺解決了呢</p>',15,'2014-08-23 08:53:05',5,13,0,0),(70,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 15 樓 木頭人 的回復</legend>\r\n										<p>是不是這些問題都解決了啊,我怎么感覺解決了呢</p>\r\n									</fieldset><p>是的,基本上都解決了</p>',16,'2014-08-23 08:55:22',1,13,0,0),(71,'<p>哎呀&nbsp;我怎么就黏貼不上捏?</p><p><br/></p>',17,'2014-08-24 05:42:59',3,13,0,0),(72,'<p>的確啊&nbsp;ctrl+v都用不上呢!!!!<br/></p>',18,'2014-08-24 05:47:00',8,13,0,0),(73,'<p>可以黏貼啊<img src=\"http://giun.vxg197.10000net.cn/ueditor/jsp/upload1/20140824/87181408862861953.png\"/></p>',19,'2014-08-24 06:47:43',1,13,0,0),(74,'<p>哈哈哈,做的不錯哦!</p>',20,'2014-08-24 14:47:58',2,13,0,0),(75,'<p>撒打算發地方<br/></p>',1,'2014-09-09 19:25:57',1,11,0,0),(76,'<p>怎么沒有人那<br/></p>',1,'2014-11-06 19:04:30',1,19,0,0),(77,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 5 樓 ImChengxuyuan 的回復</legend>\r\n										<p><img src=\"http://images.junostatic.com/full/CS1710572-02B-BIG.jpg\"/>&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n									</fieldset><p>呵呵看見好看了好幾口后進口貨<br/></p>',6,'2014-12-10 16:33:03',1,9,0,0),(78,'<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 6 樓 塵封記憶的十月 的回復</legend>\r\n										<fieldset style=\"font-size: 12px;border: 1px solid #CCC;word-break: break-word;word-wrap: break-word;overflow-x: hidden;margin: 0 0 5px 0;padding: 0 5px 5px;\"><legend style=\"font-weight:bold;font-size:14px;\">引自 5 樓 ImChengxuyuan 的回復</legend>\r\n										<p><img src=\"http://images.junostatic.com/full/CS1710572-02B-BIG.jpg\"/>&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n									</fieldset><p>呵呵看見好看了好幾口后進口貨<br/></p>\r\n									</fieldset><p>很快就很快就好了<br/></p>',7,'2014-12-10 16:33:19',1,9,0,0),(79,'<p>dfasdfasfasfdasfa</p>',21,'2014-12-10 16:40:02',5,13,0,0),(80,'<p>測試的帖子,大家可以忽略!</p>',1,'2018-05-14 14:08:08',10,20,0,0),(81,'<p>好帖子,頂起來!<img src=\"http://img.baidu.com/hi/jx2/j_0001.gif\"/><img src=\"http://img.baidu.com/hi/jx2/j_0002.gif\"/></p>',2,'2018-05-14 14:09:37',11,20,3,1),(82,'<p>很好的帖子。<img src=\"http://img.baidu.com/hi/jx2/j_0003.gif\"/></p>',3,'2018-05-14 14:12:35',12,20,2,1),(83,'<p>戶戶戶撒的</p>',4,'2018-05-14 14:18:17',10,20,0,1);

/*Table structure for table `t_grade` */

DROP TABLE IF EXISTS `t_grade`;

CREATE TABLE `t_grade` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `honor` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

/*Data for the table `t_grade` */

insert  into `t_grade`(`id`,`honor`) values (1,'初聞編程'),(2,'\"hello,world\"'),(3,'能讀能寫'),(4,'初涉腳本'),(5,'系統管理員'),(6,'高級實踐者'),(7,'掌握多語言'),(8,'資深架構師'),(9,'詮釋者'),(10,'函數式編程'),(11,'語言設計者'),(12,'計算機科學家'),(13,'計算機之父'),(14,'計算機之神'),(15,'科技領頭羊'),(16,'科技先驅'),(17,'回歸田野'),(18,'超級大水貨');

/*Table structure for table `t_help` */

DROP TABLE IF EXISTS `t_help`;

CREATE TABLE `t_help` (
  `id` int(11) NOT NULL,
  `title` varchar(100) DEFAULT NULL,
  `content` longtext,
  `newtime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `t_help` */

insert  into `t_help`(`id`,`title`,`content`,`newtime`) values (1,'登錄與注冊','<p style=\"line-height: 1.75em;\"><strong><span style=\"font-size: 18px; font-family: 宋體;\">如何注冊論壇賬號</span></strong><span style=\";font-size:16px;font-family:&#39;宋體&#39;\"><br/><br/>&nbsp; &nbsp; &nbsp;點擊論壇右上角的&quot;注冊&quot;進行注冊。注冊成功之后,系統會自動跳轉到論壇首頁。<br/><br/><strong><span style=\"font-size: 18px; font-family: 宋體;\">如何登錄論壇</span></strong><br/><br/>&nbsp; &nbsp; &nbsp;如果您已經注冊成功,您可以點擊頁面右上角的登錄進行登錄,進入登錄界面填寫正確的用戶名、密碼,點擊&quot;登錄&quot;即可完成登錄。登錄成功后會自動跳轉到論壇首頁。<br/></span></p><p><br/></p>','2017-10-09 16:34:20'),(2,'密碼注意事項','<p style=\"line-height: 1.75em;\"><span style=\"font-size: 18px;\"><strong><span style=\"font-family: &#39;宋體&#39;;\">忘記密碼</span></strong></span><span style=\";font-size:16px;font-family:&#39;宋體&#39;\"><br/><br/>&nbsp;&nbsp;&nbsp; 目前還沒有找回密碼的功能,所以請大家先牢記自己的密碼,論壇會加緊時間進一步開發這個功能,敬請期待,謝謝!<br/><br/><span style=\"font-family: &#39;宋體&#39;; font-size: 18px;\"><strong>修改密碼</strong></span><br/><br/>&nbsp;&nbsp;&nbsp; 登錄后點擊論壇右上角&quot;個人中心&quot;—&quot;修改密碼&quot;&nbsp;可以修改登錄密碼。</span></p><p><br/></p>','2017-10-09 16:34:11'),(3,'測試管理','<p>測試管理</p><p>測試管理</p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p><br/></p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p><br/></p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p><br/></p><p style=\"white-space: normal;\">測試管理</p><p style=\"white-space: normal;\">測試管理</p><p><br/></p>','2018-05-14 14:24:17');

/*Table structure for table `t_new` */

DROP TABLE IF EXISTS `t_new`;

CREATE TABLE `t_new` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `new_time` datetime DEFAULT NULL,
  `news_comment_user_id` int(11) NOT NULL,
  `news_topic_id` int(11) NOT NULL,
  `status` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `news_comment_user_id` (`news_comment_user_id`),
  KEY `news_topic_id` (`news_topic_id`),
  CONSTRAINT `news_comment_user_id` FOREIGN KEY (`news_comment_user_id`) REFERENCES `t_user` (`id`),
  CONSTRAINT `news_topic_id` FOREIGN KEY (`news_topic_id`) REFERENCES `t_topic` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8;

/*Data for the table `t_new` */

insert  into `t_new`(`id`,`new_time`,`news_comment_user_id`,`news_topic_id`,`status`) values (1,'2014-08-22 18:06:01',2,2,1),(2,'2014-08-22 18:06:46',2,1,1),(3,'2014-08-22 18:08:27',2,1,1),(4,'2014-08-22 18:34:57',2,5,1),(5,'2014-08-22 10:39:00',2,5,1),(6,'2014-08-22 10:42:12',2,6,1),(7,'2014-08-22 10:44:15',2,7,1),(8,'2014-08-22 10:48:51',1,8,0),(9,'2014-08-22 10:58:38',4,9,1),(10,'2014-08-22 11:00:00',4,8,1),(11,'2014-08-22 11:01:39',4,2,1),(12,'2014-08-22 11:02:40',4,7,1),(13,'2014-08-22 11:03:25',4,8,1),(14,'2014-08-22 11:04:17',4,6,1),(15,'2014-08-22 11:05:23',4,3,1),(16,'2014-08-22 11:11:29',5,10,1),(17,'2014-08-22 11:12:29',5,9,1),(18,'2014-08-22 11:12:59',5,8,1),(19,'2014-08-22 20:27:03',2,5,1),(20,'2014-08-22 12:41:09',3,10,1),(21,'2014-08-22 12:41:42',3,10,1),(22,'2014-08-22 12:43:08',3,10,1),(23,'2014-08-22 12:44:06',3,10,1),(24,'2014-08-22 22:11:27',2,5,1),(25,'2014-08-22 22:25:28',2,5,1),(26,'2014-08-22 14:32:43',1,10,1),(27,'2014-08-22 14:34:44',1,10,1),(28,'2014-08-22 22:38:59',1,10,1),(29,'2014-08-22 22:41:24',1,10,1),(30,'2014-08-22 22:42:53',1,10,1),(31,'2014-08-22 22:43:36',1,10,1),(32,'2014-08-22 22:43:52',1,10,1),(33,'2014-08-22 17:41:21',1,8,1),(34,'2014-08-23 01:37:06',3,12,1),(35,'2014-08-23 03:23:06',3,5,1),(36,'2014-08-23 05:52:09',3,13,1),(37,'2014-08-23 05:52:20',3,13,1),(38,'2014-08-23 05:52:36',3,13,1),(39,'2014-08-23 08:51:06',5,13,1),(40,'2014-08-23 08:51:32',5,13,1),(41,'2014-08-23 08:52:04',5,13,1),(42,'2014-08-23 08:52:35',5,13,1),(43,'2014-08-23 08:53:05',5,13,1),(44,'2014-08-24 05:42:59',3,13,1),(45,'2014-08-24 05:47:00',8,13,1),(46,'2014-08-24 14:47:58',2,13,1),(47,'2014-12-10 16:33:03',1,9,0),(48,'2014-12-10 16:33:19',1,9,0),(49,'2014-12-10 16:40:02',5,13,1),(50,'2018-05-14 14:09:37',11,20,1),(51,'2018-05-14 14:12:35',12,20,1);

/*Table structure for table `t_topic` */

DROP TABLE IF EXISTS `t_topic`;

CREATE TABLE `t_topic` (
  `id` int(11) NOT NULL,
  `title` varchar(50) DEFAULT NULL,
  `content` longtext,
  `comment_count` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '0',
  `topic_time` datetime DEFAULT NULL,
  `topics_user_id` int(11) NOT NULL,
  `topics_type_id` int(11) NOT NULL,
  `nice_topic` int(11) DEFAULT '0',
  `integral` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `topics_user_id` (`topics_user_id`),
  KEY `topics_type_id` (`topics_type_id`),
  CONSTRAINT `topics_type_id` FOREIGN KEY (`topics_type_id`) REFERENCES `t_type` (`id`),
  CONSTRAINT `topics_user_id` FOREIGN KEY (`topics_user_id`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `t_topic` */

insert  into `t_topic`(`id`,`title`,`content`,`comment_count`,`status`,`topic_time`,`topics_user_id`,`topics_type_id`,`nice_topic`,`integral`) values (1,'js登錄驗證','<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\"><strong>經常寫js驗證,感覺很麻煩,這次就把他整理貼出來,以后可以直接用了。具體介紹這里不羅嗦了,直接貼代碼,相信大家都能理解代碼的含義</strong></span></p><p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 24px; color: rgb(204, 0, 0);\">登錄驗證:</span></p><p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">Jsp頁面代碼:</span></p><pre class=\"brush:html;toolbar:false\">&lt;form&nbsp;action=&quot;userLogin.action&quot;&nbsp;method=&quot;post&quot;&nbsp;onsubmit=&quot;return&nbsp;login();&quot;&nbsp;id=&quot;loginForm&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;h4&gt;用戶登錄&lt;/h4&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&nbsp;/&gt;&nbsp;用&nbsp;戶&nbsp;名:&lt;input&nbsp;type=&quot;text&quot;&nbsp;name=&quot;user.username&quot;&nbsp;id=&quot;uName&quot;&nbsp;style=&quot;height:&nbsp;30px;width:&nbsp;220px;font-size:&nbsp;20px;&quot;&nbsp;/&gt;&lt;br&nbsp;/&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&nbsp;/&gt;&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;碼:&lt;input&nbsp;type=&quot;password&quot;&nbsp;name=&quot;user.password&quot;&nbsp;id=&quot;uPass&quot;&nbsp;style=&quot;height:&nbsp;30px;width:&nbsp;220px;font-size:&nbsp;20px;&quot;&nbsp;/&gt;&lt;br&nbsp;/&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&nbsp;/&gt;&nbsp;&lt;input&nbsp;type=&quot;submit&quot;&nbsp;value=&quot;登錄&quot;&nbsp;style=&quot;height:&nbsp;30px;width:&nbsp;60px;font-size:&nbsp;20px;&quot;&nbsp;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=&quot;reset&quot;&nbsp;value=&quot;重置&quot;&nbsp;style=&quot;height:&nbsp;30px;width:&nbsp;60px;font-size:&nbsp;20px;&quot;&nbsp;/&gt;\r\n&nbsp;&lt;/form&gt;</pre><p><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">js驗證代碼:</span></p><pre class=\"brush:js;toolbar:false\">function&nbsp;login()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;console.info(&quot;點擊了登錄&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userName&nbsp;=&nbsp;$(&quot;#uName&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;console.info(userName)\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userPass&nbsp;=&nbsp;$(&quot;#uPass&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;console.info(userPass);\r\n&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(userName&nbsp;==&nbsp;&quot;&quot;&nbsp;||&nbsp;userName&nbsp;==&nbsp;null)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;用戶名不能為空&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;if&nbsp;(userPass&nbsp;==&nbsp;&quot;&quot;&nbsp;||&nbsp;userPass&nbsp;==&nbsp;null)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;密碼不能為空&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}</pre><p><br/></p>',3,1,'2014-08-22 17:54:11',1,7,1,10),(2,'js注冊驗證','<p>繼續上一篇js注冊驗證<br/></p><p><span style=\"font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 24px; color: rgb(204, 0, 0);\">注冊驗證:</span><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\"></span></p><p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">JSP頁面代碼:</span></p><pre class=\"brush:html;toolbar:false\">&lt;span&nbsp;style=&quot;white-space:pre&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;&lt;form&nbsp;action=&quot;userRegister.action&quot;&nbsp;method=&quot;post&quot;&nbsp;onsubmit=&quot;return&nbsp;register();&quot;&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h4&gt;用戶注冊&lt;/h4&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;style=&quot;text-align:&nbsp;right;width:&nbsp;200px;line-height:&nbsp;50px;&quot;&gt;用&amp;nbsp;戶&amp;nbsp;名&lt;font\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&lt;td&nbsp;style=&quot;text-align:&nbsp;right;line-height:&nbsp;50px;&quot;&gt;郵&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;箱&lt;font\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color=&quot;red&quot;&gt;*&lt;/font&gt;:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;input&nbsp;type=&quot;text&quot;&nbsp;name=&quot;user.email&quot;&nbsp;id=&quot;uEmail&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onblur=&quot;return&nbsp;checkemail();&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type=&quot;reset&quot;&nbsp;value=&quot;重置&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;style=&quot;width:&nbsp;60px;font-size:&nbsp;16px;&quot;&nbsp;/&gt;&lt;/td&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt;</pre><p><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">js驗證代碼:</span></p><pre class=\"brush:js;toolbar:false\">function&nbsp;register()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;if(!checkname()){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}else&nbsp;if&nbsp;(!checkpass())&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;if(!checkemail()){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n}</pre><pre class=\"brush:js;toolbar:false\">function&nbsp;checkname()&nbsp;&nbsp;&nbsp;&nbsp;\r\n{\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;name&nbsp;=&nbsp;document.getElementById(&quot;uName&quot;).value;&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;ts&nbsp;=&nbsp;document.getElementById(&quot;namets&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;if(name.length&lt;3||&nbsp;name.length&gt;15)&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts.innerHTML&nbsp;=&quot;用戶名長度須在3-15之間!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts.style.color=&quot;red&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;$.post(&quot;checkUserName.action&quot;,&nbsp;{&quot;&nbsp;userName&quot;:&nbsp;name&nbsp;},function(data){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d&nbsp;=&nbsp;$.parseJSON(data);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//console.log(d.success);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(d.success!=true){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts.innerHTML&nbsp;=&#39;用戶名已存在!&#39;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts.style.color=&#39;red&#39;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;});\r\n&nbsp;&nbsp;&nbsp;&nbsp;ts.innerHTML&nbsp;=&#39;用戶名可以使用!&#39;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;ts.style.color=&#39;green&#39;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n}\r\nfunction&nbsp;checkpass(){\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userPass&nbsp;=&nbsp;$(&quot;#uPass&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;pts&nbsp;=&nbsp;document.getElementById(&quot;passts&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;if(userPass.length&lt;6&nbsp;||&nbsp;userPass.length&nbsp;&gt;15)&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pts.innerHTML&nbsp;=&quot;密碼長度須在6-15之間!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pts.style.color=&quot;red&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;pts.innerHTML&nbsp;=&quot;密碼可以使用!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;pts.style.color=&quot;green&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n}\r\nfunction&nbsp;checkrpass(){\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userPass&nbsp;=&nbsp;$(&quot;#uPass&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userRPass&nbsp;=&nbsp;$(&quot;#uRPass&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;prts&nbsp;=&nbsp;&nbsp;document.getElementById(&quot;pa***ts&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(userPass&nbsp;!=&nbsp;userRPass)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prts.innerHTML=&quot;兩次密碼輸入不一致!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prts.style.color=&quot;red&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;prts.innerHTML&nbsp;=&quot;輸入一致!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;prts.style.color=&quot;green&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n}\r\nfunction&nbsp;checkemail(){\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;userEmail&nbsp;=&nbsp;$(&quot;#uEmail&quot;).val();\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;ets&nbsp;=&nbsp;document.getElementById(&quot;emailts&quot;);\r\n&nbsp;&nbsp;&nbsp;&nbsp;if(!isEmail(userEmail)){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ets.innerHTML&nbsp;=&quot;郵箱格式不正確!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ets.style.color=&quot;red&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;ets.innerHTML&nbsp;=&quot;郵箱可以使用!&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;ets.style.color=&quot;green&quot;;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;true;\r\n}\r\nfunction&nbsp;isEmail(str){\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;reg&nbsp;=&nbsp;/[a-z0-9-]{1,30}@[a-z0-9-]{1,65}.[a-z]{3}/;\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;reg.test(str);\r\n}</pre><p><br/></p>',4,1,'2014-08-22 17:58:08',1,7,1,10),(3,'http狀態碼大全','<p><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">下表顯示了常見的HTTP&nbsp;1.1狀態代碼以及它們對應的狀態信息和含義。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">  &nbsp;應當謹慎地使用那些只有HTTP&nbsp;1.1支持的狀態代碼,因為許多瀏覽器還只能夠支持HTTP&nbsp;1.0。如果你使用了HTTP&nbsp;1.1特有的狀態代碼,最好能夠檢查一下請求的HTTP版本號。&nbsp;狀態代碼&nbsp;&nbsp;狀態信息&nbsp;&nbsp;含義&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">100&nbsp;&nbsp;Continue&nbsp;&nbsp;初始的請求已經接受,客戶應當繼續發送請求的其余部分。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">101&nbsp;&nbsp;Switching&nbsp;Protocols&nbsp;&nbsp;服務器將遵從客戶的請求轉換到另外一種協議(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">200&nbsp;&nbsp;OK&nbsp;&nbsp;一切正常,對GET和POST請求的應答文檔跟在后面。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">201&nbsp;&nbsp;Created&nbsp;&nbsp;服務器已經創建了文檔,Location頭給出了它的URL。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">202&nbsp;&nbsp;Accepted&nbsp;&nbsp;已經接受請求,但處理尚未完成。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">203&nbsp;&nbsp;Non-Authoritative&nbsp;Information&nbsp;&nbsp;文檔已經正常地返回,但一些應答頭可能不正確,因為使用的是文檔的拷貝(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">204&nbsp;&nbsp;No&nbsp;Content&nbsp;&nbsp;沒有新文檔,瀏覽器應該繼續顯示原來的文檔。如果用戶定期地刷新頁面,而Servlet可以確定用戶文檔足夠新,這個狀態代碼是很有用的。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">205&nbsp;&nbsp;Reset&nbsp;Content&nbsp;&nbsp;沒有新的內容,但瀏覽器應該重置它所顯示的內容。用來強制瀏覽器清除表單輸入內容(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">206&nbsp;&nbsp;Partial&nbsp;Content&nbsp;&nbsp;客戶發送了一個帶有Range頭的GET請求,服務器完成了它(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">300&nbsp;&nbsp;Multiple&nbsp;Choices&nbsp;&nbsp;客戶請求的文檔可以在多個位置找到,這些位置已經在返回的文檔內列出。如果服務器要提出優先選擇,則應該在Location應答頭指明。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">301&nbsp;&nbsp;Moved&nbsp;Permanently&nbsp;&nbsp;客戶請求的文檔在其他地方,新的URL在Location頭中給出,瀏覽器應該自動地訪問新的URL。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">302&nbsp;&nbsp;Found&nbsp;&nbsp;類似于301,但新的URL應該被視為臨時性的替代,而不是永久性的。注意,在HTTP1.0中對應的狀態信息是“Moved&nbsp;Temporatily”。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">出現該狀態代碼時,瀏覽器能夠自動訪問新的URL,因此它是一個很有用的狀態代碼。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">注意這個狀態代碼有時候可以和301替換使用。例如,如果瀏覽器錯誤地請求http://host/~user(缺少了后面的斜杠),有的服務器返回301,有的則返回302。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">嚴格地說,我們只能假定只有當原來的請求是GET時瀏覽器才會自動重定向。請參見307。&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">303&nbsp;&nbsp;See&nbsp;Other&nbsp;&nbsp;類似于301/302,不同之處在于,如果原來的請求是POST,Location頭指定的重定向目標文檔應該通過GET提取(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">304&nbsp;&nbsp;Not&nbsp;Modified&nbsp;&nbsp;客戶端有緩沖的文檔并發出了一個條件性的請求(一般是提供If-Modified-Since頭表示客戶只想比指定日期更新的文檔)。服務器告訴客戶,原來緩沖的文檔還可以繼續使用。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">305&nbsp;&nbsp;Use&nbsp;Proxy&nbsp;&nbsp;客戶請求的文檔應該通過Location頭所指明的代理服務器提取(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">307&nbsp;&nbsp;Temporary&nbsp;Redirect&nbsp;&nbsp;和302(Found)相同。許多瀏覽器會錯誤地響應302應答進行重定向,即使原來的請求是 POST,即使它實際上只能在POST請求的應答是303時才能重定向。由于這個原因,HTTP&nbsp;1.1新增了307,以便更加清除地區分幾個狀態代碼: 當出現303應答時,瀏覽器可以跟隨重定向的GET和POST請求;如果是307應答,則瀏覽器只能跟隨對GET請求的重定向。(HTTP&nbsp;1.1 新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">400&nbsp;&nbsp;Bad&nbsp;Request&nbsp;&nbsp;請求出現語法錯誤。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">401&nbsp;&nbsp;Unauthorized&nbsp;&nbsp;客戶試圖未經授權訪問受密碼保護的頁面。應答中會包含一個WWW-Authenticate頭,瀏覽器據此顯示用戶名字/密碼對話框,然后在填寫合適的Authorization頭后再次發出請求。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">403&nbsp;&nbsp;Forbidden&nbsp;&nbsp;資源不可用。服務器理解客戶的請求,但拒絕處理它。通常由于服務器上文件或目錄的權限設置導致。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">404&nbsp;&nbsp;Not&nbsp;Found&nbsp;&nbsp;無法找到指定位置的資源。這也是一個常用的應答。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">405&nbsp;&nbsp;Method&nbsp;Not&nbsp;Allowed&nbsp;&nbsp;請求方法(GET、POST、HEAD、DELETE、PUT、TRACE等)對指定的資源不適用。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">406&nbsp;&nbsp;Not&nbsp;Acceptable&nbsp;&nbsp;指定的資源已經找到,但它的MIME類型和客戶在Accpet頭中所指定的不兼容(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">407&nbsp;&nbsp;Proxy&nbsp;Authentication&nbsp;Required&nbsp;&nbsp;類似于401,表示客戶必須先經過代理服務器的授權。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">408&nbsp;&nbsp;Request&nbsp;Timeout&nbsp;&nbsp;在服務器許可的等待時間內,客戶一直沒有發出任何請求。客戶可以在以后重復同一請求。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">409&nbsp;&nbsp;Conflict&nbsp;&nbsp;通常和PUT請求有關。由于請求和資源的當前狀態相沖突,因此請求不能成功。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">410&nbsp;&nbsp;Gone&nbsp;&nbsp;所請求的文檔已經不再可用,而且服務器不知道應該重定向到哪一個地址。它和404的不同在于,返回407表示文檔永久地離開了指定的位置,而404表示由于未知的原因文檔不可用。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">411&nbsp;&nbsp;Length&nbsp;Required&nbsp;&nbsp;服務器不能處理請求,除非客戶發送一個Content-Length頭。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">412&nbsp;&nbsp;Precondition&nbsp;Failed&nbsp;&nbsp;請求頭中指定的一些前提條件失敗(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">413&nbsp;&nbsp;Request&nbsp;Entity&nbsp;Too&nbsp;Large&nbsp;&nbsp;目標文檔的大小超過服務器當前愿意處理的大小。如果服務器認為自己能夠稍后再處理該請求,則應該提供一個Retry-After頭(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">414&nbsp;&nbsp;Request&nbsp;URI&nbsp;Too&nbsp;Long&nbsp;&nbsp;URI太長(HTTP&nbsp;1.1新)。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">416&nbsp;&nbsp;Requested&nbsp;Range&nbsp;Not&nbsp;Satisfiable&nbsp;&nbsp;服務器不能滿足客戶在請求中指定的Range頭。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">500&nbsp;&nbsp;Internal&nbsp;Server&nbsp;Error&nbsp;&nbsp;服務器遇到了意料不到的情況,不能完成客戶的請求。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">501&nbsp;&nbsp;Not&nbsp;Implemented&nbsp;&nbsp;服務器不支持實現請求所需要的功能。例如,客戶發出了一個服務器不支持的PUT請求。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">502&nbsp;&nbsp;Bad&nbsp;Gateway&nbsp;&nbsp;服務器作為網關或者代理時,為了完成請求訪問下一個服務器,但該服務器返回了非法的應答。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">503&nbsp;&nbsp;Service&nbsp;Unavailable&nbsp;&nbsp;服務器由于維護或者負載過重未能應答。例如,Servlet可能在數據庫連接池已滿的情況下返回503。服務器返回503時可以提供一個Retry-After頭。&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">504&nbsp;&nbsp;Gateway&nbsp;Timeout&nbsp;&nbsp;由作為代理或網關的服務器使用,表示不能及時地從遠程服務器獲得應答。(HTTP&nbsp;1.1新)&nbsp;&nbsp;</span><br style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"/><span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;\">505&nbsp;&nbsp;HTTP&nbsp;Version&nbsp;Not&nbsp;Supported&nbsp;&nbsp;服務器不支持</span></p>',1,1,'2014-08-22 18:00:16',1,9,1,10),(4,'session超時設置','<p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">session超時設置陣列有以下3種方法:</span></p><p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">1. 在tomcat &nbsp;-&gt;conf &nbsp;-&gt; &nbsp;servler.xml文件中定義:</span></p><p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Context path=&quot;/test&quot; docBase=&quot;/test&quot;&nbsp;&nbsp;&nbsp;<br/>  defaultSessionTimeOut=&quot;3600&quot; isWARExpanded=&quot;true&quot;&nbsp;&nbsp;&nbsp;<br/>  isWARValidated=&quot;false&quot; isInvokerEnabled=&quot;true&quot;&nbsp;&nbsp;&nbsp;<br/>  isWorkDirPersistent=&quot;false&quot;/&gt;&nbsp;<br/>defaultSessionTimeOut=&quot;3600&quot;</span></p><p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">2. 在web.xml中定義:</span></p><p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">&lt;session-config&gt;&nbsp;&nbsp;&nbsp;<br/>&lt;session-timeout&gt;20&lt;/session-timeout&gt;&nbsp;&nbsp;&nbsp;<br/>&lt;/session-config&gt;</span></p><p class=\"font-color\" style=\"margin: 0px 0px 10px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px;\">3. 在程序中定義:&nbsp;<br/>session.setMaxInactiveInterval(30*60);表示30分鐘內不操作就失效&nbsp;<br/>設置單位為秒,設置為-1永不過期</span></p><p><br/></p>',0,0,'2014-08-22 18:02:44',1,29,0,10),(5,'歡迎大家來找茬','<p>來,說說大家的問題哈</p>',15,0,'2014-08-22 10:32:27',1,36,0,10),(6,'如何在用SSH框架實現用戶管理系統時,在登錄界面添加驗證碼(驗證碼不寫在jsp中)???','<p>在用SSH框架寫用戶管理系統的代碼時,準備在登陸代碼中添加一個驗證碼的功能,可是當我在jsp頁面外單開一個action寫驗證碼的代碼后,只要一到登陸界面,后臺就會報錯,報的是OutputStream和getwriter的輸出流沖突錯誤。。。求解!!!!</p><p>&nbsp;</p><p>注:(非測試代碼,真求解啊)</p>',3,0,'2014-08-22 10:39:02',3,13,0,20),(7,'JavaWeb發展學習方向','<p>在學完SSH以后,如果還要學web方面的知識的話該看什么了????誰知道 。。</p>',3,0,'2014-08-22 10:41:22',3,13,0,10),(8,'SSH學習視屏分享------論壇開張推出的優惠哦 ............','<p><span style=\"line-height: 0px;\">?</span><a href=\"http://pan.baidu.com/disk/home#path=%252Fssh%25E6%25A1%2586%25E6%259E%25B6\">http://pan.baidu.com/disk/home#path=%252Fssh%25E6%25A1%2586%25E6%259E%25B6</a></p><p>&nbsp;</p><p>&nbsp;</p>',6,0,'2014-08-22 10:47:54',3,13,1,10),(9,'EXTJS4.0視頻分享','<p><a href=\"http://pan.baidu.com/s/1pJLNGIf\">http://pan.baidu.com/s/1pJLNGIf</a></p>',7,0,'2014-08-22 10:56:52',2,40,1,10),(10,'新手報到啦!!!','<p>大家互相認識一下吧,哈哈<img src=\"http://img.baidu.com/hi/jx2/j_0071.gif\"/></p>',14,0,'2014-08-22 11:06:59',4,36,0,10),(11,'大家說說找回密碼功能怎么做啊','<p>如題,請大家指導指導,萬分感謝</p>',1,0,'2014-08-22 11:57:15',1,19,0,40),(12,'jsp  img標簽包含中文該如何處理呢','<p>如題,請大家指教,img標簽里面的src我是通過struts 的property獲取的</p>',2,0,'2014-08-23 01:29:34',1,10,0,5),(13,'給本論壇的建議','<p>&nbsp; &nbsp;大家好,歡迎大家來到DS-Java論壇,目前本論壇處于測試過程,歡迎大家來找BUG,萬分感謝,找到bug后回復在此樓層,謝謝</p>',21,0,'2014-08-23 05:49:14',1,36,0,30),(14,'測試發圖,','<p><img src=\"/ueditor/jsp/upload1/20140823/5241408782244187.jpg\" title=\"psb.jpg\"/></p><p><br/></p><p><br/></p><p><br/></p><p><video class=\"edui-upload-video video-js vjs-default-skin\" controls=\"\" preload=\"none\" width=\"420\" height=\"280\" src=\"/ueditor/jsp/upload/20140823/71641408782429937.wmv\" data-setup=\"{}\"><source src=\"/ueditor/jsp/upload/20140823/71641408782429937.wmv\" type=\"video/wmv\"/></video></p><p><br/></p><p style=\"line-height: 16px;\"><img src=\"/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif\"/><a href=\"/ueditor/jsp/upload/20140823/31651408782536171.doc\">BBS論壇設計論文(完整???).doc</a></p><p><embed type=\"application/x-shockwave-flash\" class=\"edui-faked-music\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"http://box.baidu.com/widget/flash/bdspacesong.swf?from=tiebasongwidget&url=&name=%E5%B9%BB%E5%90%AC&artist=%E8%AE%B8%E5%B5%A9&extra=%E6%A2%A6%E6%B8%B8%E8%AE%A1&autoPlay=false&loop=true\" width=\"400\" height=\"95\" align=\"none\" wmode=\"transparent\" play=\"true\" loop=\"false\" menu=\"false\" allowscriptaccess=\"never\" allowfullscreen=\"true\"/></p><p><br/></p><p></p><p style=\"text-align:center\"><br/></p>',0,0,'2014-08-23 08:29:27',1,36,0,5),(15,'測試視頻','<p style=\"text-align:center\"><embed type=\"application/x-shockwave-flash\" class=\"edui-faked-video\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"http://player.youku.com/player.php/sid/XNzMwNzA5OTcy\" width=\"420\" height=\"280\" wmode=\"transparent\" play=\"true\" loop=\"false\" menu=\"false\" allowscriptaccess=\"never\" allowfullscreen=\"true\"/></p><p>---------------------------------------------------------------------</p><p><br/></p><p>自己上傳</p><p><video class=\"edui-upload-video video-js vjs-default-skin\" controls=\"\" preload=\"none\" width=\"420\" height=\"280\" src=\"/ueditor/jsp/upload/20140823/97161408783593734.avi\" data-setup=\"{}\"><source src=\"/ueditor/jsp/upload/20140823/97161408783593734.avi\" type=\"video/avi\"/></video></p><p><br/></p><p><br/></p>',0,0,'2014-08-23 08:48:06',5,40,0,5),(16,'再次測試視頻','<p style=\"text-align: center\"><img src=\"http://localhost:8080/DS-Java/ueditor/jsp/upload1/20140824/3911408870183811.jpg\" title=\"psb.jpg\"/></p><p style=\"line-height: 16px;\"><img src=\"http://localhost:8080/DS-Java/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif\"/><a href=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140824/71561408870243514.doc\">readme.doc</a></p><p><br/></p>',0,0,'2014-08-24 16:51:07',1,37,0,5),(17,'再次測試視頻(前面沒有傳上去呢)','<p>測試上傳視頻,前面的帖子沒弄好,重來</p><p><video class=\"edui-upload-video video-js vjs-default-skin\" controls=\"\" preload=\"none\" width=\"420\" height=\"280\" src=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140824/85121408870365746.wmv\" data-setup=\"{}\"><source src=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140824/85121408870365746.wmv\" type=\"video/wmv\"/></video></p>',0,0,'2014-08-24 16:52:49',1,36,0,5),(18,'我也來測試一下','<p>上一篇主任沒有弄對格式,我試試看</p><p><br/></p><p><video class=\"edui-upload-video video-js vjs-default-skin\" controls=\"\" preload=\"none\" width=\"420\" height=\"280\" src=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140824/87031408870532541.wmv\" data-setup=\"{}\"><source src=\"http://localhost:8080/DS-Java/ueditor/jsp/upload/20140824/87031408870532541.wmv\" type=\"video/wmv\"/></video></p>',0,0,'2014-08-24 16:55:44',5,40,0,5),(19,'大家交個朋友吧','<p>大家交個朋友吧大家交個朋友吧大家交個朋友吧</p>',1,0,'2014-11-06 18:50:17',1,1,0,10),(20,'600多個微信小程序源碼涵蓋各個行業大部分帶后臺持續更新中','<h2 style=\"font-family: &quot;microsoft yahei&quot;; font-size: 24px; margin: 0px 0px 0.3em; padding: 0px; list-style-type: none; line-height: normal; color: rgb(64, 64, 64); white-space: normal; background-color: rgb(255, 255, 255);\">600多個微信小程序源碼涵蓋各個行業大部分帶后臺持續更新中</h2><p><br/></p><p><span style=\"color: rgb(79, 79, 79); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; text-align: justify; text-indent: 32px; background-color: rgb(255, 255, 255);\">今天把本人花費一個月左右整理的600多款小程序源碼發布出來,以后每個月還會持續更新,很大一部分都帶有后臺源碼</span><span style=\"font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; color: rgb(79, 79, 79); text-align: justify; text-indent: 32px;\">并包含有小程序上線教程,幫你分分鐘上線自己的小程序</span><span style=\"color: rgb(79, 79, 79); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; text-align: justify; text-indent: 32px; background-color: rgb(255, 255, 255);\">,下面我們來看看目錄截圖,最后面會把源碼目錄以文字的形式導出來,這樣你可以在網頁上搜索單個想要的小程序源碼,看看有沒有符合你需要的。</span><span style=\"font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; color: rgb(79, 79, 79); text-align: justify; text-indent: 32px; background-color: rgb(255, 255, 255);\">為了讓大家更快速地建立自己的小程序,四月底</span><span style=\"color: rgb(79, 79, 79); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; text-align: justify; text-indent: 32px; background-color: rgb(255, 255, 255);\">我們更新了一批實戰教程附帶源碼的資料,下面的介紹中會有介紹。</span></p><p><span style=\"color: rgb(79, 79, 79); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; text-align: justify; text-indent: 32px; background-color: rgb(255, 255, 255);\"><img src=\"http://localhost:8080/forum/ueditor/jsp/upload1/20180514/94671526278051763.jpg\" title=\"Koala.jpg\"/></span></p>',4,1,'2018-05-14 14:07:45',10,31,1,5);

/*Table structure for table `t_type` */

DROP TABLE IF EXISTS `t_type`;

CREATE TABLE `t_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) DEFAULT NULL,
  `count_topics` int(11) DEFAULT '0',
  `count_comments` int(11) DEFAULT '0',
  `is_admin_type` int(11) DEFAULT '0',
  `types_category_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `types_category_id` (`types_category_id`),
  CONSTRAINT `types_category_id` FOREIGN KEY (`types_category_id`) REFERENCES `t_category` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;

/*Data for the table `t_type` */

insert  into `t_type`(`id`,`name`,`count_topics`,`count_comments`,`is_admin_type`,`types_category_id`) values (1,'Java',1,1,0,1),(2,'C/C++',1,0,0,1),(3,'C#',0,0,0,1),(4,'其他',0,0,0,1),(5,'HTML',0,0,0,2),(6,'CSS',0,0,0,2),(7,'Javascript',2,7,0,2),(8,'Jquery',0,0,0,2),(9,'其他',1,1,0,2),(10,'JSP/Servlet',1,2,0,3),(11,'JDBC',0,0,0,3),(12,'Xml',0,0,0,3),(13,'其他',3,12,0,3),(14,'Struts',0,0,0,4),(15,'Hibernate',0,0,0,4),(16,'Spring',0,0,0,4),(17,'iBATIS',0,0,0,4),(18,'Spring-MVC',0,0,0,4),(19,'SSH',1,1,0,4),(20,'其他',0,0,0,4),(21,'Android',0,0,0,5),(22,'IOS',0,0,0,5),(23,'WP',0,0,0,5),(24,'其他',0,0,0,5),(25,'Linux',0,0,0,6),(26,'數據庫',0,0,0,6),(27,'數據結構',0,0,0,6),(28,'軟件測試',0,0,0,6),(29,'其他',1,0,0,6),(30,'Eclipse',0,0,0,7),(31,'Myeclipse',1,4,0,7),(32,'Tomcat',0,0,0,7),(33,'Maven',0,0,0,7),(34,'瀏覽器',0,0,0,7),(35,'其他',0,0,0,7),(36,'聊聊',5,53,0,8),(37,'福利',1,0,0,8),(38,'文檔',0,0,0,9),(39,'源碼',0,0,0,9),(40,'視頻',3,7,0,9),(41,'Java項目源碼',0,0,0,10),(42,'Java web項目源碼',0,0,0,10);

/*Table structure for table `t_user` */

DROP TABLE IF EXISTS `t_user`;

CREATE TABLE `t_user` (
  `id` int(11) NOT NULL,
  `username` varchar(20) DEFAULT NULL,
  `password` varchar(20) DEFAULT NULL,
  `nickname` varchar(32) DEFAULT NULL,
  `sex` varchar(2) DEFAULT NULL,
  `picture` varchar(255) DEFAULT NULL,
  `email` varchar(20) DEFAULT NULL,
  `come_from` varchar(200) DEFAULT NULL,
  `introduction` longtext,
  `profession` varchar(40) DEFAULT NULL,
  `grade_integal` int(11) DEFAULT '0',
  `integral` int(11) DEFAULT NULL,
  `clock` int(11) DEFAULT NULL,
  `topic_count` int(11) DEFAULT NULL,
  `comment_count` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT '0',
  `users_grade_id` int(11) NOT NULL,
  `register_time` datetime DEFAULT NULL,
  `status` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `usersGrade_id` (`users_grade_id`),
  CONSTRAINT `usersGrade_id` FOREIGN KEY (`users_grade_id`) REFERENCES `t_grade` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `t_user` */

insert  into `t_user`(`id`,`username`,`password`,`nickname`,`sex`,`picture`,`email`,`come_from`,`introduction`,`profession`,`grade_integal`,`integral`,`clock`,`topic_count`,`comment_count`,`role_id`,`users_grade_id`,`register_time`,`status`) values (1,'admin','123456','智慧點點','男','/forum/u/uploadPic/20180514-03-28-03-Koala.jpg','llqqxf@163.com','上海','主要方向為java軟件開發','程序員',40,60,0,7,22,16,1,'2014-07-24 08:00:00',0),(2,'???','123456','ImChengxuyuan','?','/u/uploadPic/20140824-06-55-13-psb.jpg','1553240083@qq.com','??','   ????Java????????2?...','Java?????',20,91,2,0,2,6,1,'2014-08-22 18:04:57',0),(3,'王云鵬','19941013aoliao','我一直在這兒','男','/DS-Java/u/uploadPic/王云鵬-20140822-11-153945IS-5.jpg','1009618197@qq.com','長理云塘','本人程序員一枚,愛好運動、編程,性別男,愛好女!!!','學生',20,78,0,0,6,16,1,'2014-08-22 10:32:30',0),(4,'哈哈哈','123456','俺來也','男','/DS-Java/image/ds-java.png','123@163.com','','','',0,61,0,0,0,6,1,'2014-08-22 10:57:56',0),(5,'123','123456789','木頭人','男','/u/uploadPic/20140823-01-50-36-Koala.jpg','123456@163.com','廣州','生活不容易,且行且珍惜','碼農',0,50,0,2,6,0,1,'2014-08-22 11:10:05',0),(6,'wang','123123','wang','男','/DS-Java/image/ds-java.png','798688125@qq.com','','','',0,50,0,0,0,0,1,'2014-08-22 11:16:11',1),(7,'786543563','786543563','123456','男','/DS-Java/image/ds-java.png','kj786543563@163.com','','','',0,50,0,0,0,0,1,'2014-08-22 15:47:36',0),(8,'丫丫丫丫丫丫','19941013','丫丫丫丫丫丫',NULL,'/u/uploadPic/20140824-05-45-40-153945IS-5.jpg','1009618197@qq.com','','','',0,51,0,0,1,0,1,'2014-08-24 05:44:36',0),(9,'llq','qqqqqq','q','男','/forum/image/chen-Java.png','qq@qq.com','上海','這世界已經瘋了!','屌絲',0,50,0,0,0,6,1,'2018-05-14 13:17:14',0),(10,'llq1','111111','明禮馨德','男','/forum/u/uploadPic/20180514-02-00-32-Koala.jpg','qq@qq.com','上海','這世界已經瘋了!','軟件工程師',20,69,0,1,2,6,1,'2018-05-14 13:29:50',0),(11,'托爾斯泰','111111','托爾斯泰','男','/forum/image/chen-Java.png','qq@qq.com','','','',0,53,0,0,1,0,1,'2018-05-14 14:09:01',1),(12,'馬云的賬號','111111','馬云','男','/forum/image/chen-Java.png','qq@qq.com','','','',0,52,0,0,1,0,1,'2018-05-14 14:11:57',0);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;


項目數據庫配置

jdbc_driverClassName=com.mysql.jdbc.Driver
jdbc_url=jdbc:mysql://localhost:3306/db_bbs_forum?useUnicode=true&characterEncoding=UTF-8
jdbc_username=root
jdbc_password=root


structs.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<constant name="struts.custom.i18n.resources" value="globalMessages" /><!-- 
		指定國際化資源文件 -->
	<constant name="struts.i18n.encoding" value="UTF-8" /><!-- 指定編碼方式 -->
	<package name="json" namespace="/" extends="json-default,struts-default">
		<interceptors>
			<interceptor name="userAuthority" class="com.chen.interceptor.UserInterceptor"></interceptor>
			<interceptor name="adminAuthority" class="com.chen.interceptor.AdminInterceptor"></interceptor>
		</interceptors>
		<global-results>
			<result name="login">/login.jsp</result>
		</global-results>
		<action name="user_CheckName" class="UserAction" method="CheckName">
			<result type="json">
			</result>
		</action>
		<action name="user_CheckNic" class="UserAction" method="CheckNic">
			<result type="json">
			</result>
		</action>
		<action name="cate_new_getType" class="CategoryAction" method="new_getType">
			<result name="cate_new_getType_ok_json" type="json">
				<param name="includeProperties">listType.*</param>
			</result>
			<interceptor-ref name="userAuthority">
				<param name="includeMethods">new_getType</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="cate_ManageAllType" class="CategoryAction"
			method="ManageAllType">
			<result name="cate_manageAllType_ok_json" type="json">
				<param name="includeProperties">listType.*,category.*</param>
			</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAllType</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
	</package>
	<package name="user" namespace="/" extends="struts-default">
		<!-- 用戶相關操作攔截器 -->
		<interceptors>
			<interceptor name="userAuthority" class="com.chen.interceptor.UserInterceptor"></interceptor>
			<interceptor name="adminAuthority" class="com.chen.interceptor.AdminInterceptor"></interceptor>
			<interceptor name="superAdminAuthority"
				class="com.chen.interceptor.SuperAdminInterceptor"></interceptor>
		</interceptors>
		<global-results>
			<result name="login">/login.jsp</result>
			<result name="error">/error.jsp</result>
			<result name="a_error">/a/a_error.jsp</result>
		</global-results>
		<!-- 用戶action -->
		<action name="user_*" class="UserAction" method="{1}">
			<!-- 用戶登錄返回結果處理 -->
			<result name="user_login_ok" type="redirect">/index.jsp</result>
			<result name="login_error">/error.jsp</result>
			<result name="user_register_ok" type="redirect">/index.jsp</result>
			<result name="user_logout_ok" type="redirect">/login.jsp</result>
			<result name="user_goUser_ok">/user.jsp</result>
			<result name="user_goUserAllTopics_ok">/userTopics.jsp</result>
			<result name="user_goHome_ok">/u/home.jsp</result>
			<result name="user_getTopics_ok">/u/topics.jsp</result>
			<result name="user_getComments_ok">/u/comments.jsp</result>
			<result name="user_getNews_ok">/u/news.jsp</result>
			<result name="user_updateInfo_ok">/u/updateInfo.jsp</result>
			<result name="user_updatePass_ok">/u/updatePass.jsp</result>
			<interceptor-ref name="userAuthority">
				<param name="includeMethods">Logout,GoHome,GetTopics,GetComments,GetNews,UpdateInfo,UpdatePass</param>
			</interceptor-ref>
			<result name="user_manageAll_ok">/a/manageUsers.jsp</result>
			<result name="user_manageGoUser_ok">/a/user.jsp</result>
			<result name="user_manageGoUserAllTopics_ok">/a/userTopics.jsp</result>
			<result name="user_manageRole_ok" type="redirectAction">user_ManageAll</result>
			<result name="user_manageARole_ok" type="redirectAction">user_ManageAll
			</result>
			<result name="user_manageSRole_ok" type="redirectAction">user_ManageAll
			</result>
			<result name="user_manageDelete_ok" type="redirectAction">user_ManageAll
			</result>
			<result name="user_manageUnDelete_ok" type="redirectAction">user_ManageAll
			</result>
			<interceptor-ref name="superAdminAuthority">
				<param name="includeMethods">ManageAll,ManageDelete,ManageUnDelete,ManageARole,ManageSRole</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="anno_*" class="AnnounceAction" method="{1}">
			<result name="anno_getIndex_ok">/indexAnno.jsp</result>
			<result name="anno_getAll_ok">/announce.jsp</result>
			<result name="anno_mangeAll_ok">/a/manageAnnos.jsp</result>
			<result name="anno_manageGoUpdate_ok">/a/updateAnno.jsp</result>
			<result name="anno_manageUpdate_ok" type="redirectAction">anno_ManageAll
			</result>
			<result name="anno_ManageAdd_ok" type="redirectAction">anno_ManageAll</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAll,ManageGoUpdate,ManageUpdate,ManageAdd</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="help_*" class="HelpAction" method="{1}">
			<result name="help_getAll_ok">/help.jsp</result>
			<result name="help_getIndex_ok">/indexHelp.jsp</result>
			<result name="help_mangeAll_ok">/a/manageHelps.jsp</result>
			<result name="help_manageGoUpdate_ok">/a/updateHelp.jsp</result>
			<result name="help_manageUpdate_ok" type="redirectAction">help_ManageAll</result>
			<result name="help_ManageAdd_ok" type="redirectAction">help_ManageAll</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAll,ManageGoUpdate,ManageUpdate,ManageAdd</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>

		<action name="cate_*" class="CategoryAction" method="{1}">
			<result name="cate_new_getAll_ok">/u/newTopic.jsp</result>
			<result name="cate_getAll_ok">/type.jsp</result>
			<result name="cate_getType_ok">/typeCate.jsp</result>
			<result name="cate_go_ok">/cate.jsp</result>
			<interceptor-ref name="userAuthority">
				<param name="includeMethods">new_getAll</param>
			</interceptor-ref>
			<result name="cate_manageAdd_ok" type="redirectAction">cate_ManageAll</result>
			<result name="cate_manageAll_ok">/a/manageCates.jsp</result>
			<result name="cate_manageUpdate_ok" type="redirectAction">cate_ManageAll
			</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAll,ManageAdd,ManageUpdate</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="type_*" class="TypeAction" method="{1}">
			<result name="type_go_ok">/theType.jsp</result>
			<result name="type_manageAdd_ok" type="redirectAction">cate_ManageAll</result>
			<result name="type_manageUpdate_ok" type="redirectAction">cate_ManageAll
			</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAdd,ManageUpdate</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="topic_*" class="TopicAction" method="{1}">
			<result name="topic_add_ok" type="redirectAction">
				<param name="actionName">topic_goTopic</param>
				<param name="topic.id">${topic.id}</param>
			</result>
			<result name="topic_add_no">/error.jsp</result>
			<result name="topic_go_ok">/u/theTopic.jsp</result>
			<result name="topic_getIndexHot_ok">/indexHotTopic.jsp</result>
			<result name="topic_getIndexFresh_ok">/indexFreshTopic.jsp</result>
			<result name="topic_getIndexNice_ok">/indexNiceTopic.jsp</result>
			<result name="topic_getALL_ok">/allTopic.jsp</result>
			<result name="topic_getHot_ok">/hotTopic.jsp</result>
			<result name="topic_getNice_ok">/niceTopic.jsp</result>
			<result name="topic_search_ok">/searchResult.jsp</result>
			<result name="topic_goEnd_ok">/u/endTopic.jsp</result>
			<result name="topic_end_ok" type="redirectAction">
				<param name="actionName">topic_goTopic</param>
				<param name="topic.id">${topic.id}</param>
			</result>
			<result name="topic_goTopicByNews_ok">/u/theTopic.jsp</result>
			<interceptor-ref name="userAuthority">
				<param name="includeMethods">add,GoEnd,EndTopic,goTopicByNews</param>
			</interceptor-ref>
			<result name="topic_mangeAll_ok">/a/manageTopics.jsp</result>
			<result name="topic_manageNice_ok" type="redirectAction">topic_ManageAll
			</result>
			<result name="topic_manageUnNice_ok" type="redirectAction">topic_ManageAll
			</result>
			<interceptor-ref name="adminAuthority">
				<param name="includeMethods">ManageAll,ManageNice,ManageUnNice</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="comment_*" class="CommentAction" method="{1}">
			<result name="comment_new_no">/error.jsp</result>
			<result name="comment_new_ok" type="redirectAction">
				<param name="actionName">topic_goTopic</param>
				<param name="topic.id">${topic.id}</param>
				<param name="nowPage">${nowPage}</param>
			</result>
			<result name="comment_delete_ok" type="redirectAction">
				<param name="actionName">topic_goTopic</param>
				<param name="topic.id">${topic.id}</param>
			</result>
			<result name="comment_getAll_ok">/u/theTopicComments.jsp</result>
			<interceptor-ref name="userAuthority">
				<param name="includeMethods">newComment,Delete</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
		</action>
		<action name="uploadUserPic" class="FileUploadAction" method="userPicUpload">
			<interceptor-ref name="fileUpload">
				<param name="allowedTypes">image/bmp,image/png,image/gif,image/jpg</param>
			</interceptor-ref>
			<interceptor-ref name="defaultStack" />
			<param name="savePath">/u/uploadPic</param>
			<result name="fileupload_ok">/u/updateInfo.jsp</result>
			<result name="fileupload_no">/error.jsp</result>
		</action>
	</package>

</struts>














向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

嘉善县| 东阳市| 黑河市| 班戈县| 利川市| 龙门县| 广饶县| 甘南县| 海兴县| 新宾| 桦南县| 邮箱| 岳普湖县| 陵水| 浪卡子县| 汕尾市| 桦南县| 壶关县| 麦盖提县| 毕节市| 溧水县| 镇雄县| 莱西市| 观塘区| 黎川县| 乌拉特中旗| 聊城市| 兴安盟| 舞阳县| 旬阳县| 策勒县| 徐水县| 公主岭市| 玉山县| 亳州市| 英超| 阿克陶县| 遵义市| 华坪县| 松阳县| 沁阳市|