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

  • 大小: 8.37MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-10-10
  • 語言: 其他
  • 標簽:

資源簡介

ruts+spring+mybatis源代碼例子,留給大家參考

資源截圖

代碼片段和文件信息

package?com.dou.merchant.action;

import?java.util.List;

import?org.springframework.beans.factory.annotation.Autowired;
import?com.dou.merchant.data.pojo.SBook;
import?com.dou.merchant.data.services.ISBookServices;



@SuppressWarnings(“unchecked“)
public?class?SBookAction?{
@Autowired
ISBookServices?bookServices;
//@Autowired
private?SBook?sbook;
private?String?tips;
private?String?bookId;
private?List?bookList;
private?String?Id;

/**
?*??????????
?*?
?*?@return?????????????
?*/
public?String?addSBook()?{
String?result?=?“error“;
try?{
bookServices.saveBook(sbook);
this.setTips(“?????“);
result?=?“success“;
}?catch?(Exception?e)?{
e.printStackTrace();
this.setTips(“??????????“);
}
return?result;
}

/**
?*??????????
?*?
?*?@return
?*/
public?String?viewSBook()?{
String?result?=?“error“;
try?{
bookList?=?bookServices.findAllBook();
result?=?“success“;
}?catch?(Exception?e)?{
e.printStackTrace();
this.setTips(“??????????????????“);
}
return?result;
}

/**
?*??????????
?*?
?*?@return
?*/
public?String?modifySBook()?{
String?result?=?“error“;
System.out.println(“bookID:“+bookId);
try?{
sbook?=?bookServices.getBookById(Integer
.parseInt(this.getBookId()));
System.out.println(“title:“+sbook.gettitle());
result?=?“success“;
}?catch?(Exception?e)?{
e.printStackTrace();
this.setTips(“??????????“);
}
return?result;
}

public?String?updateSBook()?{
String?result?=?“error“;
try?{
bookServices.updateBook(sbook);
result?=?“success“;
}?catch?(Exception?e)?{
e.printStackTrace();
this.setTips(“???2??????“);
}
return?result;
}

/**
?*???????
?*?
?*?@return
?*/
public?String?removeSBook()?{
String?result?=?“error“;
System.out.println(“id:“+this.getBookId());
try?{
bookServices.removeBook(Integer.parseInt(this.getBookId()));
System.out.println(“id:“+this.getBookId());
result?=?“success“;
}?catch?(Exception?e)?{
e.printStackTrace();
this.setTips(“?????????“);
}
return?result;
}

public?SBook?getSbook()?{
return?sbook;
}

public?void?setSbook(SBook?sbook)?{
this.sbook?=?sbook;
}

public?List?getBookList()?{
return?bookList;
}

public?void?setBookList(List?bookList)?{
this.bookList?=?bookList;
}

public?String?getTips()?{
return?tips;
}

public?void?setTips(String?tips)?{
this.tips?=?tips;
}

public?String?getBookId()?{
return?bookId;
}

public?void?setBookId(String?bookId)?{
this.bookId?=?bookId;
}

public?String?getId()?{
return?Id;
}

public?void?setId(String?id)?{
Id?=?id;
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2539??2011-12-02?09:24??merchant\.classpath

?????文件????????297??2011-12-07?12:05??merchant\.mymetadata

?????文件???????1751??2011-12-02?10:05??merchant\.project

?????文件????????493??2011-12-02?09:12??merchant\.settings\.jsdtscope

?????文件????????395??2011-12-02?09:12??merchant\.settings\org.eclipse.jdt.core.prefs

?????文件????????462??2011-12-02?09:12??merchant\.settings\org.eclipse.wst.common.component

?????文件????????252??2011-12-02?09:12??merchant\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2011-12-02?09:12??merchant\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2011-12-02?09:12??merchant\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????2192??2011-12-02?10:22??merchant\src\applicationContext-common.xml

?????文件???????2950??2011-12-02?09:56??merchant\src\com\dou\merchant\action\SBookAction.java

?????文件???????1943??2011-12-02?09:58??merchant\src\com\dou\merchant\data\ISBookMapper.java

?????文件???????1505??2011-12-02?14:34??merchant\src\com\dou\merchant\data\mappers\SBookMapper.xml

?????文件???????1761??2011-12-02?14:14??merchant\src\com\dou\merchant\data\pojo\SBook.java

?????文件???????1699??2011-12-02?09:56??merchant\src\com\dou\merchant\data\services\impl\SBookServices.java

?????文件???????2105??2011-12-02?09:59??merchant\src\com\dou\merchant\data\services\ISBookServices.java

?????文件????????403??2011-12-02?10:03??merchant\src\mybatis-config.xml

?????文件????????150??2011-12-01?23:08??merchant\src\mysql.properties

?????文件????????102??2010-10-30?09:42??merchant\src\struts.properties

?????文件???????1572??2011-12-02?12:16??merchant\src\struts.xml

?????文件????????637??2011-12-02?12:11??merchant\WebRoot\addBook.jsp

?????文件????????657??2011-12-02?11:43??merchant\WebRoot\bookMsg.jsp

?????文件???????1265??2010-11-03?13:49??merchant\WebRoot\error.jsp

?????文件????????585??2011-12-02?11:22??merchant\WebRoot\index.jsp

?????文件?????????36??2011-12-02?09:12??merchant\WebRoot\meta-INF\MANIFEST.MF

?????文件???????1268??2010-11-03?13:49??merchant\WebRoot\success.jsp

?????文件???????1039??2011-12-02?11:36??merchant\WebRoot\updateBook.jsp

?????文件???????1064??2011-12-02?14:36??merchant\WebRoot\viewBook.jsp

?????文件???????2192??2011-12-02?10:22??merchant\WebRoot\WEB-INF\classes\applicationContext-common.xml

?????文件???????3508??2011-12-05?14:11??merchant\WebRoot\WEB-INF\classes\com\dou\merchant\action\SBookAction.class

............此處省略64個文件信息

評論

共有 條評論

相關資源