• 大小: 17.46MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-03
  • 语言: 其他
  • 标签: SSH  

资源简介

这是我花费几天做的实现简单登陆功能的ssh工程的搭建,希望可以给以大家帮助!!!!!

资源截图

代码片段和文件信息

package com.baidu.action;

import com.baidu.entity.SysUserEntity;
import com.baidu.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

import java.util.List;

/**
 * @Author:byy
 * @Date:2017/11/2 0002 14:34
 **/
public class UserAction extends ActionSupport{
    private String loginName;
    private String password;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }
    @Override
    public String execute() throws  Exception
    {
        SysUserEntity condition = new SysUserEntity();
        condition.setLoginName(loginName);
        condition.setPassword(password);

        List list = userService.login(condition);

        if(list.size() > 0)
        {
            return  “success“;
        } else
        {
            return “error“;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1288  2017-11-02 15:20  SSH_DEMO\.idea\artifacts\SSH_DEMO_war_exploded.xml

     文件      44897  2017-11-02 14:27  SSH_DEMO\.idea\dataSources\1eda39df-7f28-402c-bbf4-7b3d88230d3f.xml

     文件        823  2017-11-02 13:59  SSH_DEMO\.idea\dataSources.local.xml

     文件        906  2017-11-02 13:59  SSH_DEMO\.idea\dataSources.xml

     文件        896  2017-11-02 13:52  SSH_DEMO\.idea\libraries\Hibernate_4_2_2_4_2_2.xml

     文件        302  2017-11-02 14:53  SSH_DEMO\.idea\libraries\log4j_log4j_1_2_17.xml

     文件        258  2017-11-02 14:01  SSH_DEMO\.idea\libraries\mysql_connector_java_5_1_40.xml

     文件        418  2017-11-02 14:57  SSH_DEMO\.idea\libraries\org_apache_logging_log4j_log4j_core_2_7.xml

     文件        380  2017-11-02 15:20  SSH_DEMO\.idea\libraries\org_apache_struts_struts2_spring_plugin_2_3_20_1.xml

     文件        369  2017-11-02 14:22  SSH_DEMO\.idea\libraries\org_springframework_spring_web_4_3_12_RELEASE.xml

     文件       1779  2017-11-02 13:52  SSH_DEMO\.idea\libraries\Spring_4_3_12_RELEASE.xml

     文件        799  2017-11-02 15:21  SSH_DEMO\.idea\libraries\Struts_2_2_3_20_1.xml

     文件        274  2017-11-02 13:54  SSH_DEMO\.idea\misc.xml

     文件        256  2017-11-02 13:52  SSH_DEMO\.idea\modules.xml

     文件       8792  2017-11-02 14:27  SSH_DEMO\.idea\uiDesigner.xml

     文件      47168  2017-11-02 15:33  SSH_DEMO\.idea\workspace.xml

     文件        312  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\error.jsp

     文件        334  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\index.jsp

     文件        547  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\login.jsp

     文件        314  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\success.jsp

     文件       1517  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\action\UserAction.class

     文件        181  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\dao\IUserDao.class

     文件       1793  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\dao\UserDao.class

     文件       5046  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\entity\SysUserEntity.class

     文件        192  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\service\IUserService.class

     文件        737  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\com\baidu\service\UserService.class

     文件       1686  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\spring-config.xml

     文件        529  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\classes\struts.xml

     文件     445288  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\lib\antlr-2.7.7.jar

     文件       4467  2017-11-02 15:21  SSH_DEMO\out\artifacts\SSH_DEMO_war_exploded\WEB-INF\lib\aopalliance-1.0.jar

............此处省略99个文件信息

评论

共有 条评论