資源簡介
個人基于SSH三大框架開發的自助旅游平臺,前端主要使用bootstrap框架,響應式布局。該項目適合新手學習三大框架時使用參考學習,可用于畢業設計,Web開發比賽。
代碼片段和文件信息
package?net.yothin.goTogether.action;
import?java.util.Date;
import?java.util.List;
import?javax.annotation.Resource;
import?net.yothin.goTogether.model.Experience;
import?net.yothin.goTogether.service.ExperienceService;
import?net.yothin.goTogether.vo.ExperienceVo;
import?org.apache.struts2.ServletActionContext;
import?org.springframework.context.annotation.Scope;
import?org.springframework.stereotype.Component;
import?com.opensymphony.xwork2.ActionSupport;
import?com.opensymphony.xwork2.ModelDriven;
@Component(“experienceAction“)
@Scope(“prototype“)
public?class?ExperienceAction?extends?ActionSupport?implements?ModelDriven?{
public?ExperienceVo?experienceVo?=?new?ExperienceVo();
public?Experience?experience;
public?List?experiences;
public?ExperienceService?experienceService;
public?ExperienceVo?getExperienceVo()?{
return?experienceVo;
}
public?void?setExperienceVo(ExperienceVo?experienceVo)?{
this.experienceVo?=?experienceVo;
}
public?Experience?getExperience()?{
return?experience;
}
public?void?setExperience(Experience?experience)?{
this.experience?=?experience;
}
public?List?getExperiences()?{
return?experiences;
}
public?void?setExperiences(List?experiences)?{
this.experiences?=?experiences;
}
public?ExperienceService?getExperienceService()?{
return?experienceService;
}
@Resource
public?void?setExperienceService(ExperienceService?experienceService)?{
this.experienceService?=?experienceService;
}
@Override
public?object?getModel()?{
return?experienceVo;
}
/**
?*?保存心得
?*?@return
?*/
public?String?save(){
if(ServletActionContext.getRequest().getSession().getAttribute(“username“)!=null){
Date?nowDate?=?new?Date();
Experience?experience?=?new?Experience();
experience.settitle(experienceVo.gettitle());
experience.setContent(experienceVo.getContent());
experience.setWriterName((String)?ServletActionContext.getRequest().getSession().getAttribute(“username“));
experience.setWriteTime(nowDate);
experience.setPass(0);
this.experienceService.save(experience);
ServletActionContext.getRequest().setAttribute(“meg“?“提交成功,正在等待審核...“);
????????return?“editSeccess“;
}
ServletActionContext.getRequest().setAttribute(“meg“?“用戶信息過期,請重新登錄“);
return?“loginFail“;
}
/**
?*?展示心得
?*?@return
?*/
public?String?showById(){
Experience?experience?=?new?Experience();
experience.setId(experienceVo.getId());
this.experience=experienceService.getById(experience);
return?“showExperience“;
}
/**
?*?管理心得展示
?*?@return
?*/
public?String?adminShowById(){
Experience?experience?=?new?Experience();
experience.setId(experienceVo.getId());
this.experience=experienceService.getById(experience);
return?“showAdminExperience“;
}
/**
?*?查詢待審核的
?*?@return
?*/
public?String?queryByPass(){
Experience?experie
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????110??2017-05-12?16:34??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\readMe.txt
?????文件????1372130??2017-04-29?19:10??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\數據庫sql\hibernate.sql
?????文件???????1093??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.classpath
?????文件???????1335??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.project
?????文件????????522??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\.jsdtscope
?????文件????????364??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\org.eclipse.jdt.core.prefs
?????文件????????489??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\org.eclipse.wst.common.component
?????文件????????414??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????3065??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\beans.xm
?????文件????????137??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\jdbc.properties
?????文件???????1543??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\log4j.properties
?????文件???????5775??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\action\ExperienceAction.java
?????文件???????1225??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\action\IndexAction.java
?????文件???????8174??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\action\ProgramAction.java
?????文件???????9524??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\action\UserAction.java
?????文件???????1799??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\action\UserAjaxAction.java
?????文件????????734??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\ExperienceDao.java
?????文件???????4424??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\impl\ExperienceDaoImpl.java
?????文件???????5173??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\impl\ProgramDaoImpl.java
?????文件???????4051??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\impl\UserDaoImpl.java
?????文件????????700??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\ProgramDao.java
?????文件????????584??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\dao\UserDao.java
?????文件???????1244??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\model\Experience.java
?????文件???????2753??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\model\Program.java
?????文件???????1411??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\model\User.java
?????文件????????732??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\service\ExperienceService.java
?????文件???????1961??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\service\impl\ExperienceServiceImpl.java
?????文件???????1874??2017-04-29?19:05??畢業設計-自助旅游平臺(基于SSH)\Spring+Struts2+hibernate自助旅游平臺\源碼\GoTogether\src\net\yothin\goTogether\service\impl\ProgramServiceImpl.java
............此處省略178個文件信息
評論
共有 條評論