資源簡介
SSH登錄注冊,采用java語言開發(fā),Struts2+hibernate+Spring整合框架的登錄實例,適合新手
代碼片段和文件信息
package?com.shopping.action;
import?com.opensymphony.xwork2.ActionSupport;
import?com.shopping.pojo.User;
import?com.shopping.service.UserService;
public?class?UserAction?extends?ActionSupport?{
private?UserService?userService;
private?User?user;
public?UserAction()?{
//?TODO?Auto-generated?constructor?stub
System.out.println(“action被初始化了嗎?“);
}
public?String?regist(){
System.out.println(user.getUsername());
userService.addUser(user);
return?“regSuc“;
}
public?String?login(){
User?us=userService.checkUser(user);
if(us!=null){
return?“l(fā)oginSuc“;
}
return?“l(fā)ogin“;
}
public?User?getUser()?{
return?user;
}
public?void?setUser(User?user)?{
this.user?=?user;
}
public?UserService?getUserService()?{
return?userService;
}
public?void?setUserService(UserService?userService)?{
this.userService?=?userService;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1247??2017-07-24?17:29??ssh\.classpath
?????目錄???????????0??2017-07-24?19:27??ssh\.myeclipse\
?????文件?????????282??2016-06-02?08:10??ssh\.myme
?????文件????????1746??2016-05-26?09:32??ssh\.project
?????文件?????????500??2016-05-26?08:21??ssh\.settings\.jsdtscope
?????文件?????????247??2017-07-24?17:29??ssh\.settings\com.genuitec.eclipse.migration.prefs
?????文件?????????629??2016-05-26?12:19??ssh\.settings\org.eclipse.jdt.core.prefs
?????文件?????????610??2017-07-24?17:29??ssh\.settings\org.eclipse.wst.common.component
?????文件?????????361??2017-07-24?17:29??ssh\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2016-05-26?08:21??ssh\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2016-05-26?08:21??ssh\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????36??2016-05-26?08:21??ssh\WebRoot\me
?????文件??????????25??2017-07-24?17:29??ssh\WebRoot\WEB-INF\classes\me
?????文件????????3586??2017-07-24?17:30??ssh\WebRoot\WEB-INF\classes\applicationContext.xm
?????文件????????1567??2017-07-24?19:25??ssh\WebRoot\WEB-INF\classes\com\shopping\action\UserAction.class
?????文件?????????226??2017-07-24?19:21??ssh\WebRoot\WEB-INF\classes\com\shopping\dao\UserDao.class
?????文件????????1893??2017-07-24?19:21??ssh\WebRoot\WEB-INF\classes\com\shopping\daoImp\UserDaoHibernateImp.class
?????文件????????1309??2017-07-24?17:29??ssh\WebRoot\WEB-INF\classes\com\shopping\pojo\User.class
?????文件?????????245??2017-07-24?19:22??ssh\WebRoot\WEB-INF\classes\com\shopping\service\UserService.class
?????文件????????1235??2017-07-24?19:24??ssh\WebRoot\WEB-INF\classes\com\shopping\serviceImp\UserServiceImp.class
?????目錄???????????0??2017-07-24?19:27??ssh\WebRoot\WEB-INF\classes\com\shopping\util\
?????文件????????1331??2017-07-24?17:29??ssh\WebRoot\WEB-INF\classes\com\test\TestSpringHibernate.class
?????文件????????1546??2016-04-14?08:19??ssh\WebRoot\WEB-INF\classes\log4j.properties
?????文件?????????734??2017-07-24?19:26??ssh\WebRoot\WEB-INF\classes\struts.xm
?????文件??????443432??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\antlr-2.7.6.jar
?????文件??????114926??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\aspectjrt.jar
?????文件?????1545023??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\aspectjweaver.jar
?????文件??????324238??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\cglib-nodep-2.1_3.jar
?????文件????????5848??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\common-annotations.jar
?????文件??????559366??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\commons-collections-3.1.jar
?????文件??????121757??2016-05-26?08:27??ssh\WebRoot\WEB-INF\lib\commons-dbcp.jar
............此處省略42個文件信息
- 上一篇:mPass 架構(gòu)介紹
- 下一篇:Android日歷239876
評論
共有 條評論