资源简介

个人基于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.xml

     文件         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.xml

     文件        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个文件信息

评论

共有 条评论