xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

畢業設計_網上商城 項目啟動步驟 使用 shopping.sql 中的 sql 語句創建數據庫與數據庫表 將項目導入 eclipse。推薦使用Eclipse IDE for Java EE Developers 下載地址:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR1/eclipse-jee-indigo-SR1-win32.zip 打開 comfig包下的 ShopConfig 文件,右鍵單擊該文件并選擇 Debug As ---> Java Application。 其它啟動項目的方式見 《JFinal手冊》。除此之外,項目還可以與其它普通java web 項目一樣使用 tomcat jetty 等 web server 來啟動,啟動方式與非jfinal項目完全一樣。 打開瀏覽器輸入 localhost 即可查看運行效果 注意: 請確保您安裝了 JavaSE 1.6 或更高版本,tomcat下運行項目需要先刪除 jetty-server-xxx.jar,否則會有沖突 可直接運行。做畢業設計、課程設計或者想研究下技術的可以下載學習。需要更多資源的可以關注我。

資源截圖

代碼片段和文件信息

package?com.hjp.shop.controller;

import?java.util.Date;

import?com.hjp.shop.Interceptor.AdminInterceptor;
import?com.hjp.shop.model.User;
import?com.jfinal.aop.Before;
import?com.jfinal.aop.ClearInterceptor;
import?com.jfinal.core.Controller;
import?com.mchange.v2.c3p0.impl.NewPooledConnection;

@Before(AdminInterceptor.class)
public?class?AdminControlller?extends?Controller?{

public?void?index()?{
render(“index.html“);
}

public?void?searchUser()?{
String?username?=?getPara(“username“);
setAttr(“user“?User.dao.getUserByName(username));
}

public?void?listUser()?{
int?pageNo;
if?(getPara()!=null)?{
try?{
pageNo?=?getParaToInt();
if?(pageNo?<1?)?{
pageNo?=?1;
}
}?catch?(Exception?e)?{
pageNo?=?1;
e.printStackTrace();
}
}else?{
pageNo?=?1;
}
long?pageCount?=?User.dao.getPageCount();
if(pageNo?>?pageCount){
pageNo?=(int)pageCount;
}
this.setAttr(“userPage“?User.dao.getAlldate(pageNo));
setAttr(“pageNo“pageNo);
setAttr(“pageCount“pageCount);
render(“listUser.html“);
}

public?void?addUser()?{
String?username?=?getPara(“username“);
if?(username?!=?null)?{
String?password?=?User.EncoderByMd5(username?+?new?Date()).substring(06);
User?user?=?new?User().set(“username“?username).set(“password“?User.EncoderByMd5(password)).set(“rdate“new?Date()).set(“phone“?“10086“).set(“addr“?“請修改你的地址“);
if(user.save()){
user.set(“password“?password);
setAttr(“newuser“user);
}
}
render(“addUser.html“);
}

@ClearInterceptor
public?void?login()?{
if?(getPara(“login“)?==?null?||?!getPara(“login“).equals(“ok“))?{
render(“login.html“);
}?else?{
String?usernameString?=?getPara(“username“);
String?passwordString?=?getPara(“password“);

passwordString?=?User.EncoderByMd5(passwordString);

if?(passwordString.equals(User.dao
.getPasswordByusername(usernameString)))
{
this.setSessionAttr(“user“?User.dao.getUserByName(usernameString));
redirect(“/admin“);
}
}
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-27?02:12??shopping-master\
?????文件?????????920??2013-06-27?02:12??shopping-master\.classpath
?????文件????????1008??2013-06-27?02:12??shopping-master\.project
?????目錄???????????0??2013-06-27?02:12??shopping-master\.settings\
?????文件?????????488??2013-06-27?02:12??shopping-master\.settings\.jsdtscope
?????文件?????????536??2013-06-27?02:12??shopping-master\.settings\org.eclipse.core.resources.prefs
?????文件?????????357??2013-06-27?02:12??shopping-master\.settings\org.eclipse.jdt.core.prefs
?????文件?????????484??2013-06-27?02:12??shopping-master\.settings\org.eclipse.wst.common.component
?????文件?????????296??2013-06-27?02:12??shopping-master\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2013-06-27?02:12??shopping-master\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2013-06-27?02:12??shopping-master\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件?????????912??2013-06-27?02:12??shopping-master\README.md
?????目錄???????????0??2013-06-27?02:12??shopping-master\WebRoot\
?????目錄???????????0??2013-06-27?02:12??shopping-master\WebRoot\meta-INF\
?????文件??????????36??2013-06-27?02:12??shopping-master\WebRoot\meta-INF\MANIFEST.MF
?????目錄???????????0??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\
?????目錄???????????0??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\classes\
?????文件?????????539??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\classes\log4j.properties
?????目錄???????????0??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\
?????文件??????425559??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\JFinal-bin-with-src-1.3.jar
?????文件??????610790??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\c3p0-0.9.1.2.jar
?????文件??????231320??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-beanutils-1.8.0.jar
?????文件??????575389??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-collections-3.2.1.jar
?????文件??????571259??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-collections.jar
?????文件??????305001??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-httpclient-3.1.jar
?????文件??????207723??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-lang.jar
?????文件???????55424??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\commons-logging.jar
?????文件???????57115??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\cos-26Dec2008.jar
?????文件???????86487??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\ezmorph-1.0.6.jar
?????文件??????880993??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\freemarker-2.3.16.jar
?????文件??????309920??2013-06-27?02:12??shopping-master\WebRoot\WEB-INF\lib\jcommon-1.0.17.jar
............此處省略148個文件信息

評論

共有 條評論