• 大小: 42.16MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-25
  • 语言: 数据库
  • 标签: ssh  

资源简介

简单的实现ssh框架,对初学者有帮助。使用mysql数据库

资源截图

代码片段和文件信息

package action;

import service.AddressImpl;
import bean.Addresslist;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by kinthon on 17-3-31.
 */
public class AddressAction extends ActionSupport {

    private String name;
    private String phone;
    @Autowired
    private AddressImpl address;


    public void setName(String name) {
        this.name = name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {

        return name;
    }

    public String getPhone() {
        return phone;
    }

    public String add()
    {
        Addresslist al = new Addresslist();
        al.setName(getName());
        al.setPhone(getPhone());
        address.add(al);
        return SUCCESS;
    }

    public void setAddress(AddressImpl address) {
        this.address = address;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-10 00:04  firstssh\.idea\
     目录           0  2018-10-10 00:04  firstssh\.idea\artifacts\
     文件        1298  2018-10-09 00:47  firstssh\.idea\artifacts\firstssh_war_exploded.xml
     文件         857  2018-10-09 00:37  firstssh\.idea\dataSources.local.xml
     文件         903  2018-10-09 00:33  firstssh\.idea\dataSources.xml
     目录           0  2018-10-10 00:04  firstssh\.idea\dataSources\
     文件       45275  2018-10-09 00:33  firstssh\.idea\dataSources\34f66c33-1565-4849-b9cb-fccfe025f4a4.xml
     目录           0  2018-10-10 00:04  firstssh\.idea\libraries\
     文件         251  2018-10-09 00:30  firstssh\.idea\libraries\commons_dbcp2_2_1.xml
     文件         255  2018-10-09 00:30  firstssh\.idea\libraries\commons_pool2_2_4_1.xml
     文件        1131  2018-10-09 00:24  firstssh\.idea\libraries\Hibernate_5_3_6_5_3_6.xml
     文件         241  2018-10-09 00:44  firstssh\.idea\libraries\log4j_1_2_14.xml
     文件         287  2018-10-09 00:30  firstssh\.idea\libraries\mysql_connector_java_8_0_11.xml
     文件        1671  2018-10-09 00:24  firstssh\.idea\libraries\Spring_4_3_18_RELEASE.xml
     文件         265  2018-10-09 00:44  firstssh\.idea\libraries\spring_web_3_0_5_RELEASE.xml
     文件         658  2018-10-09 00:24  firstssh\.idea\libraries\Struts_2_2_5_14_1.xml
     文件         273  2018-10-09 00:44  firstssh\.idea\libraries\struts2_spring_plugin_2_3_24.xml
     文件         278  2018-10-09 00:24  firstssh\.idea\misc.xml
     文件         263  2018-10-09 00:24  firstssh\.idea\modules.xml
     文件       24952  2018-10-10 00:03  firstssh\.idea\workspace.xml
     文件        2578  2018-10-09 00:45  firstssh\firstssh.iml
     目录           0  2018-10-10 00:04  firstssh\lib\
     文件      445288  2018-10-09 00:24  firstssh\lib\antlr-2.7.7.jar
     文件        4467  2018-10-09 00:22  firstssh\lib\aopalliance-1.0.jar
     文件     2999801  2018-10-09 00:24  firstssh\lib\byte-buddy-1.8.17.jar
     文件       65100  2018-10-09 00:24  firstssh\lib\classmate-1.3.4.jar
     文件       70604  2018-10-09 00:22  firstssh\lib\commons-fileupload.jar
     文件      208700  2018-10-09 00:22  firstssh\lib\commons-io.jar
     文件      494856  2018-10-09 00:22  firstssh\lib\commons-lang.jar
     文件       61829  2018-10-09 00:22  firstssh\lib\commons-logging-1.2.jar
     文件      313898  2018-10-09 00:24  firstssh\lib\dom4j-1.6.1.jar
............此处省略129个文件信息

评论

共有 条评论