• 大小: 19.03MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-04
  • 语言: 数据库
  • 标签: ssh  mysql  java  

资源简介

基于S2SH的图书管理系统,eclipse+MySQL,可用于课程设计。

资源截图

代码片段和文件信息

package com.sixgod.librarymanage.action;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.Servlet;
import javax.servlet.http.HttpServletRequest;

import org.apache.catalina.connector.Request;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionSupport;
import com.sixgod.librarymanage.dao.BookDAO;
import com.sixgod.librarymanage.model.Book;
import com.sixgod.librarymanage.model.BookClass;
import com.sixgod.librarymanage.model.PageBean;
import com.sixgod.librarymanage.model.User;
import com.sixgod.librarymanage.service.BookClassService;
import com.sixgod.librarymanage.service.BookService;
import com.sixgod.librarymanage.service.UserService;


@Component
@Scope(“prototype“)
public class BookAction extends ActionSupport implements SessionAware {

private List books;
private BookService bookService;
private UserService userService;
private BookClassService bookClassService;
private List bookClasses;
private BookClass bookClass;
private Book book;
private String idAll;
private int updateid;
private String bookname;
private boolean b;
private int userid;
private int page = 1;
private PageBean pageBean;

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public PageBean getPageBean() {
return pageBean;
}

public void setPageBean(PageBean pageBean) {
this.pageBean = pageBean;
}

public int getUserid() {
return userid;
}

public void setUserid(int userid) {
this.userid = userid;
}

public String getBookname() {
return bookname;
}

public void setBookname(String bookname) {
this.bookname = bookname;
}

public int getUpdateid() {
return updateid;
}

public void setUpdateid(int updateid) {
this.updateid = updateid;
}

public String getIdAll() {
return idAll;
}

public void setIdAll(String idAll) {
this.idAll = idAll;
}

public Book getBook() {
return book;
}

public void setBook(Book book) {
this.book = book;
}

public BookClass getBookClass() {
return bookClass;
}

public void setBookClass(BookClass bookClass) {
this.bookClass = bookClass;
}

public BookClassService getBookClassService() {
return bookClassService;
}

@Resource
public void setBookClassService(BookClassService bookClassService) {
this.bookClassService = bookClassService;
}

private Mapject> session;

public BookService getBookService() {
return bookService;
}

@Resource
public void setBookService(BookService bookService) {
this.bookService = bookService;
}

public List getBooks() {
return books;
}

@Resource
public void setBooks(List books) {

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

     文件        743  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.classpath

     文件       1050  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.project

     文件        503  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\.jsdtscope

     文件        364  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\org.eclipse.jdt.core.prefs

     文件        503  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\org.eclipse.wst.common.component

     文件        305  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       3007  2018-06-18 21:39  LibraryManage_001\LibraryManage_001\build\classes\applicationContext.xml

     文件       8635  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\action\BookAction.class

     文件       1562  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\action\BookClassAction.class

     文件       3468  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\action\UploadAction.class

     文件       6796  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\action\UserAction.class

     文件        304  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\aop\UserAOP.class

     文件        452  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\BookClassDAO.class

     文件       1136  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\BookDAO.class

     文件       1999  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\imp\BookClassDAOImp.class

     文件       7763  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\imp\BookDAOImp.class

     文件       6686  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\imp\UserDAOImp.class

     文件        835  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\dao\UserDAO.class

     文件       2027  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\model\Book.class

     文件       1658  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\model\BookClass.class

     文件       1386  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\model\Fileupload.class

     文件       2347  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\model\PageBean.class

     文件       2774  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\model\User.class

     文件       1271  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\service\BookClassService.class

     文件       3648  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\service\BookService.class

     文件       3326  2018-06-20 19:34  LibraryManage_001\LibraryManage_001\build\classes\com\sixgod\librarymanage\service\UserService.class

     文件       1549  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\build\classes\log4j.properties

     文件       2525  2017-06-13 20:36  LibraryManage_001\LibraryManage_001\build\classes\struts.xml

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

评论

共有 条评论