——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
平台:管理企业、用户
企业:发部职位,查看投递
用户:查找职位,收藏职位,投递职位

用户





企业




管理员





技术框架
JSP CSS JavaScript jQuery SpringBoot SpringMVC MyBatis
基于javaweb的SpringBoot+MyBatis招聘平台(平台、企业、用户)(java+springboot+jsp+mysql+maven)
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| @RequestMapping("registCom") @ResponseBody public Message registCom(Company company) { Message msg=new Message(); int result = companyService.findCompanyByName(company.getCompanyLoginName()); if(result==1){ msg.setStr("公司登录名已经存在"); return msg; }else if(result==0){ int result_ = companyService.findByCompanyName(company.getCompanyName()); if(result_==1){ msg.setStr("公司名已经存在"); return msg; }else{ companyService.save(company); msg.setStr("success"); return msg; } } return msg; }
@RequestMapping("show") public String show(Integer cid,String jobName,String jobAddress,String releaseTime,Double jobSalary,String companyName,Model model){ Company company = companyService.findCompanyById(cid); model.addAttribute("jobName", jobName); model.addAttribute("jobAddress", jobAddress); model.addAttribute("releaseTime", releaseTime); model.addAttribute("jobSalary",jobSalary); model.addAttribute("companyName",companyName); model.addAttribute("company", company); return "/job/showOneCompany"; }
@RequestMapping("accessComLogin") @ResponseBody public Message accessComLogin(HttpServletRequest request, String companyLoginName, String verificationCode,String companyPwd,Model model) { Message msg=new Message();
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
@Controller @RequestMapping("/com") public class CompanyController {
@Autowired public ICompanyService companyService; @Autowired private IJobService iJobService; @RequestMapping("findAllCompany") public String findAllCompany(Model model) { List<Company> companyList = companyService.findAll(); model.addAttribute("companyList", companyList); return "/company/listAllCompany"; }
@RequestMapping("editCompany") public String editCompany(Integer cid, Model model) { Company company = companyService.findCompanyById(cid); model.addAttribute("company", company); return "/company/editCompany"; }
@RequestMapping("deleteById") public String deleteById(Integer cid) { companyService.deleteById(cid); return "redirect:findAllCompany"; } @RequestMapping("editCompanySubmit")
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| job_.setCid(String.valueOf(cid)); job_.setJobAddress(jobAddress); job_.setJobName(jobName); job_.setJobSalary(jobSalary); job_.setReleaseTime(new Date()); int result = iJobService.insertJob(job_); if(result==1){ msg.setStr("success"); return msg; }else{ msg.setStr("插入职位失败"); return msg; } }else{ msg.setStr("新增的职位名称不可以重复"); return msg; } }else{ msg.setStr("fail"); return msg; } }
@RequestMapping("login") public String login() { return "/company/login"; }
@RequestMapping("regist") public String regist() { return "/regist/registCom"; }
@RequestMapping("index") public String index() { return "/company/index"; }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| @RequestMapping("top") public String toTop() { return "/company/top"; }
@RequestMapping("left") public String toLeft() { return "/company/left"; }
@RequestMapping("body") public String toBody() { return "/company/body"; }
@RequestMapping("exportSheet") public void exportSheet(HttpServletResponse response, HttpSession session) { List<Company> list = companyService.findAll();
Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams("公司信息", "company"), Company.class, list);
String encode = null; try { encode = URLEncoder.encode("公司信息.xls", "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } response.addHeader("Content-Disposition", "attachment;filename=" + encode);
ServletOutputStream os = null; try { os = response.getOutputStream(); } catch (IOException e) { e.printStackTrace();
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
@RequestMapping("index") public String toIndex() { return "/main/index"; }
@RequestMapping("top") public String toTop() { return "/main/top"; }
@RequestMapping("left") public String toLeft() { return "/main/left"; }
@RequestMapping("body") public String toBody() { return "/main/body"; }
@RequestMapping("registUser") public String toRegistUser() { return "/regist/registUser"; }
@RequestMapping("registCom") public String toRegistCom() { return "/regist/registCom"; } } package com.demo.controller;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
@Controller @RequestMapping("/com") public class CompanyController {
@Autowired public ICompanyService companyService; @Autowired private IJobService iJobService; @RequestMapping("findAllCompany") public String findAllCompany(Model model) { List<Company> companyList = companyService.findAll(); model.addAttribute("companyList", companyList); return "/company/listAllCompany"; }
@RequestMapping("editCompany") public String editCompany(Integer cid, Model model) { Company company = companyService.findCompanyById(cid); model.addAttribute("company", company); return "/company/editCompany"; }
@RequestMapping("deleteById") public String deleteById(Integer cid) { companyService.deleteById(cid); return "redirect:findAllCompany";
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=111521552802106ag
https://javayms.pages.dev?id=111521552802106ag