91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

一個小型maven管理的ssh框架開發的人員管理網站,能基本對與ssh框架有一個基本了解,內容也不多,框架條理都分好了,易于學習。配置文件都有注解。默認字符集為UTF-8,數據庫直接按照bean創建就行,注解形式無法自動創建表

資源截圖

代碼片段和文件信息

package?com.hmz.action;

import?com.hmz.entity.User;
import?com.hmz.service.UserService;
import?com.hmz.util.SuperAction;
import?com.opensymphony.xwork2.ActionContext;
import?com.opensymphony.xwork2.ModelDriven;
import?org.springframework.context.annotation.Scope;
import?org.springframework.stereotype.Controller;
import?javax.annotation.Resource;
import?javax.servlet.ServletException;
import?java.util.List;

/**
?*?@Author?Hu?mingzhi
?*?Created?by?ThinKPad?on?2017/9/8.
?*/
@Controller
@Scope(“prototype“)
public?class?UserAction?extends?SuperAction?implements?ModelDriven{

????@Resource
????private?UserService?userService;
????private?User?user?=?new?User();

????public?String?login()?{
????????boolean?login?=?userService.login(user);
????????if?(login)?{
????????????return?SUCCESS;
????????}
????????else
????????????return?“fail“;
????}

????public?String?queryAll(?)?{
????????ActionContext?context=ActionContext.getContext();
????????List?userList?=?userService.queryAll();
????????//往request里放attribute
//????????context.put(“userList“userList);
????????//往session里放
????????context.getSession().put(“userList“userList);
????????return?“querySuccess“;
????}

????public?String?delete()?{

????????Integer?id?=?Integer.valueOf(request.getParameter(“id“));
????????boolean?delete?=?userService.delete(id);
????????return?“delete_success“;

????}

????public?String?queryList(?)?{
????????ActionContext?context=ActionContext.getContext();
????????List?userList?=?userService.queryAll();
????????//往request里放attribute
//????????context.put(“userList“userList);
????????//往session里放
????????context.getSession().put(“userList“userList);
????????return?“queryListSuccess“;
????}

????public?String?add()?{
????????userService.add(user);
????????return?“add_success“;
????}

????public?String?edit()?{
????????Integer?id?=?Integer.valueOf(request.getParameter(“id“));
????????User?user?=?userService.queryOne(id);
????????session.setAttribute(“user“?user);
????????return?“edit_success“;
????}

????public?String?update()?{
????????userService.updateOne(user);
????????return?“update_success“;
????}

????public?String?out()?{
????????session.invalidate();
????????try?{
????????????request.logout();
????????}?catch?(ServletException?e)?{
????????????e.printStackTrace();
????????}
????????return?“out_success“;
????}

????public?User?getModel()?{

????????return?user;
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-09-08?22:19??mavenSSH\
?????目錄???????????0??2017-09-28?10:47??mavenSSH\.idea\
?????目錄???????????0??2017-09-08?17:15??mavenSSH\.idea\artifacts\
?????文件?????????290??2017-09-07?08:26??mavenSSH\.idea\artifacts\mavenSSH_war.xml
?????文件????????3914??2017-09-08?17:15??mavenSSH\.idea\artifacts\mavenSSH_war_exploded.xml
?????文件?????????628??2017-09-07?08:26??mavenSSH\.idea\compiler.xml
?????文件?????????172??2017-09-07?08:26??mavenSSH\.idea\encodings.xml
?????目錄???????????0??2017-09-08?22:19??mavenSSH\.idea\libraries\
?????文件?????????635??2017-09-08?22:19??mavenSSH\.idea\libraries\Java_EE_6_Java_EE_6.xml
?????文件?????????462??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__antlr_antlr_2_7_7.xml
?????文件?????????605??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__commons_fileupload_commons_fileupload_1_3_2.xml
?????文件?????????503??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__commons_io_commons_io_2_4.xml
?????文件?????????558??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__commons_logging_commons_logging_1_2.xml
?????文件?????????479??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__com_mchange_c3p0_0_9_5.xml
?????文件?????????591??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__com_mchange_mchange_commons_java_0_2_9.xml
?????文件?????????462??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__dom4j_dom4j_1_6_1.xml
?????文件?????????455??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__junit_junit_4_12.xml
?????文件?????????574??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_42.xml
?????文件?????????458??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__ognl_ognl_3_1_12.xml
?????文件?????????556??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_apache_commons_commons_lang3_3_4.xml
?????文件?????????552??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_7.xml
?????文件?????????566??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_apache_struts_struts2_core_2_5_10.xml
?????文件?????????629??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_apache_struts_struts2_spring_plugin_2_5_10.xml
?????文件?????????549??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_aspectj_aspectjweaver_1_8_10.xml
?????文件?????????540??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_freemarker_freemarker_2_3_23.xml
?????文件?????????532??2017-09-07?08:26??mavenSSH\.idea\libraries\Maven__org_hamcrest_hamcrest_core_1_3.xml
?????文件?????????732??2017-09-08?14:48??mavenSSH\.idea\libraries\Maven__org_hibernate_common_hibernate_commons_annotations_4_0_1_Final.xml
?????文件?????????599??2017-09-08?14:48??mavenSSH\.idea\libraries\Maven__org_hibernate_hibernate_core_4_2_0_Final.xml
?????文件?????????720??2017-09-08?14:48??mavenSSH\.idea\libraries\Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_1_Final.xml
?????文件?????????550??2017-09-08?14:48??mavenSSH\.idea\libraries\Maven__org_javassist_javassist_3_15_0_GA.xml
?????文件?????????587??2017-09-08?14:48??mavenSSH\.idea\libraries\Maven__org_jboss_logging_jboss_logging_3_1_0_GA.xml
............此處省略222個文件信息

評論

共有 條評論