• 大小: 17.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: Java
  • 标签: javaweb  

资源简介

一个人发了2周时间写的项目实训,个人感觉不错,老师也觉得不错,本资源运行要下载一个spring插件用spring框架写的,用eclipse写的项目

资源截图

代码片段和文件信息

package crud.controller;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Semaphore;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.websocket.server.PathParam;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.sun.org.apache.bcel.internal.generic.NEW;

import crud.dao.Fk_R_FDao;
import crud.dao.QuestionDao;
import crud.dao.ScoreDao;
import crud.dao.SemesterDao;
import crud.dao.SubjectDao;
import crud.dao.TestDao;
import crud.dao.UserDao;
import crud.entities.Fk_r_f;
import crud.entities.Fk_t_q;
import crud.entities.Question;
import crud.entities.Test;
import crud.entities.User;
import crud.servcer.GaiJuanServer;
import crud.servcer.LoginServer;
import crud.servcer.QuestionServer;
import crud.servcer.RoleServer;
import crud.servcer.ScoreServer;
import crud.servcer.TestServer;

@Controller
public class LoginController {

@RequestMapping(“/delet/{id}“)
public String delet(@PathVariable(“id“) Integer id) {
System.out.println(id );
new QuestionDao().deleteForId(id);
return “redirect:/selquestion“;
}

@RequestMapping(“/seluser“)
public String user(Model model) {
System.out.println( );
model.addAttribute(“user“new UserDao().queryAll());
return “user_list“;
}
@RequestMapping(“/selsubject“)
public String Su(Model model) {
model.addAttribute(“su“new SubjectDao().queryAll());
return “su_list“;
}
@RequestMapping(“/selmter“)
public String Se(Model model) {
model.addAttribute(“se“ new SemesterDao().queryAll());
return “se_list“;
}
@RequestMapping(“/selrole“)
public String rolesel(Model model) {
model.addAttribute(“fk“new Fk_R_FDao().queryForAll());
return “role_list“;
}
//查询考试
@RequestMapping(“/seltest“)
public String tests(Model model) {
TestDao dao = new TestDao();
model.addAttribute(“test“ dao.queryForAll());
return “test_list“;
}

@RequestMapping(“/selquestion“)
public String questionOp(Model model) {
QuestionDao dao = new QuestionDao();
model.addAttribute(“question“ dao.queryAll());
return “question_list“;
}

//查询分数
@RequestMapping(“score“)
public  String testNew(HttpSession sessionModel m) {
User user = (User) session.getAttribute(“user“);
ScoreServer server = new ScoreServer();
m.addAttribute(“score“server.selcetId(user));
return “score_list“;
}
@RequestMapping(value=“/questionsub“method = RequestMethod.POST)
public String questionsub(@RequestParam(“drup“) String drup@RequestParam(“contentsu“) String[] contentsu@RequestParam(“contentfl“) String[] contentfl) {
QuestionServer server = new QuestionServer();

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

     文件        920  2018-12-28 14:11  基于JavaWeb的在线考试系统\EMD\.classpath

     文件       1264  2018-12-28 11:03  基于JavaWeb的在线考试系统\EMD\.project

     文件        567  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\.jsdtscope

     文件        364  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\org.eclipse.jdt.core.prefs

     文件        461  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\org.eclipse.wst.common.component

     文件        345  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-12-28 10:56  基于JavaWeb的在线考试系统\EMD\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        456  2018-12-28 15:14  基于JavaWeb的在线考试系统\EMD\.springBeans

     文件       8385  2019-01-08 09:18  基于JavaWeb的在线考试系统\EMD\build\classes\crud\controller\LoginController.class

     文件       5003  2019-01-07 19:05  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\FctionDao.class

     文件       3458  2019-01-07 19:41  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\Fk_R_FDao.class

     文件       3103  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\Fk_T_QDao.class

     文件       1322  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\MapperQuestion.class

     文件       1570  2019-01-07 13:30  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\MapperScore.class

     文件       1366  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\MapperUser.class

     文件        911  2019-01-07 18:58  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\Mapper_f_r_f.class

     文件        912  2019-01-07 19:01  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\Mapper_f_r_f2.class

     文件        913  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\Mapper_f_t_p.class

     文件       4634  2019-01-07 17:34  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\OptionDao.class

     文件       4597  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\QuestionDao.class

     文件       3840  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\RoleDao.class

     文件       3817  2019-01-07 13:30  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\ScoreDao.class

     文件       3628  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\SemesterDao.class

     文件       1787  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\SfDao.class

     文件       3606  2019-01-07 19:59  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\SubjectDao.class

     文件       3982  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\TestDao.class

     文件       4273  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\dao\UserDao.class

     文件       1588  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\entities\Fction.class

     文件       1637  2019-01-06 14:45  基于JavaWeb的在线考试系统\EMD\build\classes\crud\entities\Fk_r_f.class

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

评论

共有 条评论