freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

tellgo團(tuán)購網(wǎng)的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(編輯修改稿)

2025-07-19 12:11 本頁面
 

【文章內(nèi)容簡介】 EY (`userid`) REFERENCES `t_user` (`id`)) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8。用戶表t_pingjia 的平臺(tái)數(shù)據(jù)庫表的設(shè)計(jì)如圖48所示。圖48評(píng)價(jià)表t_pingjia評(píng)價(jià)表的創(chuàng)建表的語句如下。CREATE TABLE `t_pingjia` ( `id` int(11) NOT NULL auto_increment, `orderid` bigint(20) default NULL, `pingjiaflag` int(11) default 39。039。, `pingjiacontent` text, PRIMARY KEY (`id`), KEY `orderid` (`orderid`), CONSTRAINT `t_pingjia_fk` FOREIGN KEY (`orderid`) REFERENCES `t_order` (`id`)) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8。第5章 系統(tǒng)功能實(shí)現(xiàn) 根據(jù)程序的需求的需要,特設(shè)計(jì)類圖便于查看類型,同時(shí)可以使用類圖直接生成實(shí)體類,以下是本系統(tǒng)涉及到的類的類圖。訂單的類圖如圖51所示。圖51訂單Order類圖對(duì)應(yīng)的實(shí)體類的程序代碼如下。public class Order implements Serializable{ private long id。 private int orderlock。 private Tuangou tuangou。 private User user。 private Date createtime。 private String flagonly。}類型的類圖如圖52所示。圖52類型Leixing類圖類型的實(shí)體類對(duì)應(yīng)的程序代碼如下。public class Leixing implements Serializable{ private static final long serialVersionUID = 7141419035239709511L。 private long id。 private String name。 private int leixinglock。}團(tuán)購信息的類圖如圖53所示。圖53團(tuán)購信息Tuangou類圖團(tuán)購信息的實(shí)體類對(duì)應(yīng)的程序代碼如下。public class Tuangou implements Serializable{ private long id。 private int tuangoulock。 private Leixing leixing。 private String title。 private String jianjie。 private String path。 private String jiage。 private String daoqishijian。//到期時(shí)間 private Date createtime。 private int tuangourenshu。//團(tuán)購人數(shù) private int dianjirenshu。//點(diǎn)擊人數(shù)}用戶信息的類圖如圖54所示。圖54用戶User類圖用戶信息的實(shí)體類對(duì)應(yīng)的代碼如下。public class User implements Serializable{ private long id。 private String username。 private String password。 private Date createtime。 private String truename。 private int role。//1表示管理員,0表示用戶 private int userlock。 private String address。 private String phone。 private String 。 private String qq。}用戶信息的類圖如圖54所示。圖55留言Liuyan類圖用戶信息的實(shí)體類對(duì)應(yīng)的代碼如下。public class Liuyan implements Serializable{ private static final long serialVersionUID = 7141419035239709511L。 private long id。 private String title。 private Date liuyantime。 private String content。 private User user。} 用戶信息的類圖如圖54所示。圖56評(píng)價(jià)Pingjia類圖用戶信息的實(shí)體類對(duì)應(yīng)的代碼如下。public class Pingjia implements Serializable{ private static final long serialVersionUID = 7141419035239709511L。 private int id。 private String pingjiacontent。 private int pingjiaflag。 private Order order。 } 根據(jù)程序的需要,特設(shè)計(jì)流程圖便于了解整個(gè)抽象行為的具體過程,以下是個(gè)主要模塊的流程圖的設(shè)計(jì)。 訂單模塊程序流程圖訂單模塊的程序的流程圖如圖55所示。圖55訂單模塊程序流程圖 SSH框架的使用以及各自的配置SSH框架就是struts2,spring,hibernate的簡稱,運(yùn)用3個(gè)框架的集成協(xié)作使用,可以有效的提高代碼編寫的效率,從而有效的降低程序開發(fā)的周期。 hibernate配置文件hibernateconfiguration sessionfactory ! Database connection settings property name=dialect/property property name=tellgo/propertyproperty name= jdbc:mysql://localhost:3306/tellgo?autoReconnect=trueamp。amp。useUnicode=trueamp。amp。ch aracterEncoding=utf8 /property ! Echo all executed SQL to stdout property name=show_sqltrue/property property name=format_sqltrue/property property name=dialect/property ! Enable Hibernate39。s automatic session context management property name=current_session_context_classthread/property property name=update/property mapping class=/ mapping class=/ mapping class=/ mapping class=/ /sessionfactory/hibernateconfiguration這是Hibernate的配置文件,在該文件中首先加載了連接池的一個(gè)配置,就是加載了數(shù)據(jù)庫的連接信息,property name=show_sqltrue/property property name=format_sqltrue/property表示控制臺(tái)打印SQL語句,并格式化SQL語句property name=dialect/property表示當(dāng)前數(shù)據(jù)庫的語言是MYSQLmapping class=/mapping class=/mapping class=/mapping class=/都表示當(dāng)前數(shù)據(jù)庫建立起來的表和類之間的映射關(guān)系,比如mapping class=/表示User類和t_user表之間的建立起來的對(duì)應(yīng)關(guān)系,其他也都類似 struts配置文件struts constant name= value=spring / constant name= value=UTF8 / package name=index namespace=/ extends=strutsdefault action name=index method=index class=manageAction result name=success/result /action action name=method class=manageAction result type=dispatcher${url}/result result name=redirect type=redirect${url}/result /action /package/struts這是struts的配置文件,該文件的作用主要起到來自JSP的請(qǐng)求的跳轉(zhuǎn)分配的作用。該struts配置文件是總的配置文件。 Spring 在本項(xiàng)目中主要用到了IOC的功能,就是把對(duì)象實(shí)例化bean id=userDao class= property name=sessionFactoryref bean=sessionFactory //property /bean bean id=leixingDao class= property name=sessionFactoryref bean=sessionFactory //property /bean bean id=tuangouDao class= property name=sessionFactoryref bean=sessionFactory //property /bean bean id=orderDao class= property name=sessionFactoryref bean=sessionFactory //property /bean本段代碼是把DAO實(shí)例化的代碼,通過spring的IOC模式bean id=manageAction class= scope=prototype property name=userDaoref bean=userDao //property property name=leixingDaoref bean=leixingDao //property property name=tuangouDaoref bean=tuangouDao //property property name=orderDaoref bean=orderDao //property /bean 本段代碼是把ManageAction實(shí)例化的代碼,原理也是spring的IOC模式。 登陸頁面本系統(tǒng)用戶登錄的實(shí)現(xiàn)界面如圖56所示。圖56 登陸頁面登陸界面實(shí)現(xiàn)的主要代碼如下。//用戶登錄操作 public void login2() throws IOException{ HttpServletRequest request = ()。//獲取request對(duì)象 HttpServletResponse response = ()。//獲取response對(duì)象 String username = (username)。 String password = (password)。User u = ( where username=39。+username+39。 and password=39。+password+39。 and userlock=0)。//根據(jù)用戶名和密碼去數(shù)據(jù)庫中查找對(duì)象 if(u==null){ //驗(yàn)證用戶是否存在 (gbk)。 ().print(script language=javascriptalert(39。用戶名或者密碼錯(cuò)誤!39。)。=39。39。/script)。 }else{ HttpSession
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1