Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

作者头像
全栈程序员站长
发布于 2022-09-08 02:30:40
发布于 2022-09-08 02:30:40
7900
举报

大家好,又见面了,我是你们的朋友全栈君。

基于JSP的JSP+MYSQL人才招聘系统hrm系统是一个综合的员工管理系统,系统主页面左边由导航树构成,分为:部门管理、员工管理、招聘管理、培训管理、薪资管理、以及系统设置模块, 模块功能主要包含CRUD操作,详情查看等操作。

后台管理具体描述如下:网站新闻资讯管理|–添加新闻资讯;|–修改新闻资讯;|–删除新闻资讯个人会员管理|–查看个人会员|–删除个人会员企业会员管理|–查看企业会员|–删除企业会员在线留言管理|–查看在线留言|–删除在线留言

系统用户管理

|–系统用户的录入,包括用户名、密码等信息|–修改自己的密码|–用户信息查看|–登录日志查看 招聘信息管理求职信息管理求职信息审核

个人会员

|–注册个人用户|–个人用户修改自己的密码|–个人用户发布自己的求职信息|–个人用户修改自己的求职信息|–个人用户上传自己的照片|–发送求职申请和个人简历|–接收用人单位的面试通知

企业会员|–注册企业用户|–企业用户修改自己的密码|–企业用户发布自己的招聘信息|–企业用户修改自己的招聘信息|–企业用户向求职者发送面试通知|–为所有求职人员设置人才库数据库(hibernate 的c3p0连接数据库使用说明)

com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/hrm root 123456 true true org.hibernate.dialect.MySQL5Dialect org.springframework.orm.hibernate4.SpringSessionContext “

package com.csl.controller;

import com.alibaba.fastjson.JSON; import com.csl.domain.*; import com.csl.serviceImpl.GoodsServiceImpl; import com.csl.serviceImpl.ImageServiceImpl; import com.csl.serviceImpl.UserServiceImpl; import com.google.gson.Gson; import com.qiniu.common.QiniuException; import com.qiniu.common.Zone; import com.qiniu.http.Response; import com.qiniu.storage.Configuration; import com.qiniu.storage.UploadManager; import com.qiniu.storage.model.DefaultPutRet; import com.qiniu.util.Auth; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView;

import java.io.File; import java.io.UnsupportedEncodingException; import java.util.List; import java.util.UUID;

/** * Created by csl on 2017/4/18. */ @Controller @RequestMapping(value = “/goods”) public class GoodsController { @Autowired private GoodsServiceImpl goodsService; @Autowired private UserServiceImpl userService; @Autowired private ImageServiceImpl imageService;

private String imageUrl = “”;

@RequestMapping(value = “/goodsSpecific/{goodsID}&{userID}”, method = RequestMethod.GET) public ModelAndView goodsSpecific(@PathVariable(“goodsID”) String goodsID, @PathVariable String userID) { GoodsDO goodsDO = this.goodsService.getByID(goodsID, userID); UserDO userDO = this.userService.getOwner(goodsID); ModelAndView modelAndView = new ModelAndView(“GoodsSpecific”); modelAndView.addObject(“goods”, goodsDO); modelAndView.addObject(“user”, userDO); return modelAndView; }

@RequestMapping(value = “/attentionGoods”, method = RequestMethod.POST) @ResponseBody public int attentionGoods(String goodsID, String userID, boolean isAttention) { try { if (isAttention) { this.goodsService.attentionGoods(userID, goodsID); return 1; } else { this.goodsService.removeAttention(userID, goodsID); return 2; } } catch (Exception exception) {

} return -1; }

@RequestMapping(value = “/getTop5”, method = RequestMethod.GET) @ResponseBody public List<GoodsDO> getTop5(String userID) { return this.goodsService.getTop5(userID); }

@RequestMapping(value = “/viewCollection”, method = RequestMethod.GET) public ModelAndView viewCollection() { return new ModelAndView(“UserCollection”); }

@RequestMapping(value = “/getCollection”) @ResponseBody public List<GoodsDO> getCollection(String userID) { return this.goodsService.getGoodsByUserID(userID, ActionPage.attention); }

@RequestMapping(value = “/viewRepository”, method = RequestMethod.GET) public ModelAndView viewRepository() { return new ModelAndView(“GoodsRepository”); }

@RequestMapping(value = “/getRepository”, method = RequestMethod.GET) @ResponseBody public List<GoodsDO> getRepository(String userID) { return this.goodsService.getGoodsByUserID(userID, ActionPage.own); }

@RequestMapping(value = “/editGoods/{goodsID}”, method = RequestMethod.GET) public ModelAndView editGoods(@PathVariable String goodsID) { GoodsDO goodsDO = this.goodsService.find(goodsID); ModelAndView modelAndView = new ModelAndView(“GoodsEdit”); modelAndView.addObject(“goods”, goodsDO); modelAndView.addObject(“pageType”, “edit”); return modelAndView; }

@RequestMapping(value = “/update”, method = RequestMethod.GET) @ResponseBody public boolean update(String goodsJSON) { GoodsDO goodsDO = JSON.parseObject(goodsJSON, GoodsDO.class); if (goodsDO.getImageUrl() == “”) { goodsDO.setImageUrl(this.imageUrl); } return this.goodsService.update(goodsDO); }

@RequestMapping(value = “/remove”, method = RequestMethod.GET) @ResponseBody public boolean remove(String goodsID, int type) { boolean result = true; switch (type) { case 1: result = this.goodsService.remove(goodsID); break; case 2: result = this.goodsService.removeSoldGoods(goodsID); break; default: break; } return result; }

@RequestMapping(value = “/createGoods”, method = RequestMethod.GET) public ModelAndView createGoods() { GoodsDO goodsDO = new GoodsDO(); goodsDO.setID(UUID.randomUUID().toString()); ModelAndView modelAndView = new ModelAndView(“GoodsEdit”); modelAndView.addObject(“goods”, goodsDO); modelAndView.addObject(“pageType”, “create”); return modelAndView; }

@RequestMapping(value = “/friendGoods/{twoID}”, method = RequestMethod.GET) public ModelAndView friendGoods(@PathVariable(“twoID”) String twoID) { ModelAndView modelAndView = new ModelAndView(“FriendGoods”); modelAndView.addObject(“twoID”, twoID); return new ModelAndView(“FriendGoods”); }

@RequestMapping(value = “/upImage”, method = RequestMethod.POST) @ResponseBody public boolean upImage(@RequestParam(“file”) MultipartFile imageFile) { try { this.imageUrl = this.imageService.upImage(imageFile.getBytes()); } catch (Exception exception) {

} return true; }

@RequestMapping(value = “/addGoods”, method = RequestMethod.GET) @ResponseBody public boolean addGoods(String goodsJSON, String userID) { GoodsDO goodsDO = JSON.parseObject(goodsJSON, GoodsDO.class); goodsDO.setImageUrl(this.imageUrl); goodsDO.setStatus(GoodsStatus.unsold.name()); return this.goodsService.save(goodsDO, userID); }

@RequestMapping(value = “/updateStatus”, method = RequestMethod.GET) @ResponseBody public boolean updateStatus(String goodsID, String status) { return this.goodsService.updateStatus(goodsID, GoodsStatus.valueOf(status)); }

@RequestMapping(value = “/search”, method = RequestMethod.GET) @ResponseBody public List<GoodsDO> search(String userID, String text) { return null; } } package com.csl.controller;

import com.csl.domain.FinalValue; import com.csl.domain.UserDO; import com.csl.domain.ValidateCodeMap; import com.csl.serviceImpl.MailServiceImpl; import com.csl.serviceImpl.UserServiceImpl; import com.csl.utility.ValidateCode; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

import java.awt.image.BufferedImage; import java.util.*;

/** * Created by csl on 2017/3/30. */ @Controller @RequestMapping(value = “/user”) public class UserController { @Autowired private UserServiceImpl userService; @Autowired private MailServiceImpl mailService; private String validateCode = “”; private ValidateCode validateCoder = ValidateCode.getInstance(); private int validateIndex = 0; private ArrayList<ValidateCodeMap> validateMapList = new ArrayList<ValidateCodeMap>();

@RequestMapping(value = “/getUserByEmail”, method = RequestMethod.GET) @ResponseBody public UserDO getUserByEmail(String email) { return this.userService.getUserByEmail(email); }

@RequestMapping(value = “/getUserByID”, method = RequestMethod.GET) @ResponseBody public UserDO getUserByID(String ID) { return this.userService.getUserByID(ID); }

@RequestMapping(value = “/validateUser”, method = RequestMethod.GET) @ResponseBody public boolean validateUser(String email, String password) { return this.userService.isRightUser(email, password); }

@RequestMapping(value = “/getValidateCode”, method = RequestMethod.GET) @ResponseBody public String getValidateCode() { String result = “”; if (this.validateMapList != null && this.validateMapList.size() == 0) { this.validateMapList = this.validateCoder.getValidateMap(); } int index = new Random().nextInt(this.validateMapList.size()); while (index == this.validateIndex) { index = new Random().nextInt(this.validateMapList.size()); } this.validateIndex = index; result = FinalValue.filePath + this.validateMapList.get(index).getName() + “.PNG”; return result; }

@RequestMapping(value = “/checkValidateCode”, method = RequestMethod.GET) @ResponseBody public boolean checkValidateCode(String validateCode, int kind) { boolean result = true; switch (kind) { case 1: result = validateCode.equals(this.validateMapList.get(validateIndex).getResult()); ; break; case 2: result = this.validateCode != “” && this.validateCode.equals(validateCode); break; default: break; } return result; }

@RequestMapping(value = “/checkEmail”, method = RequestMethod.GET) @ResponseBody public boolean checkEmail(String userEmail) { return this.userService.checkEmail(userEmail); }

@RequestMapping(value = “/checkName”, method = RequestMethod.GET) @ResponseBody public boolean checkName(String userName) { return this.userService.checkName(userName); }

@RequestMapping(value = “/checkTelephone”, method = RequestMethod.GET) @ResponseBody public boolean checkTelephone(String telephone) { return this.userService.checkTelephone(telephone); }

@RequestMapping(value = “/registerAccount”, method = RequestMethod.POST) @ResponseBody public UserDO registerAccount(UserDO userDO) { userDO.setID(UUID.randomUUID().toString()); try { boolean result = this.userService.registerAccount(userDO); if (result) { return userDO; } } catch (Exception exception) {

} return null; }

@RequestMapping(value = “/sendValidateCode”, method = RequestMethod.GET) @ResponseBody public boolean sendValidateCode(String email) { boolean result = true; try { this.validateCode = this.mailService.sendValidateCode(email); } catch (Exception exception) { result = false; } return result; }

@RequestMapping(value = “/updateAccount”, method = RequestMethod.POST) @ResponseBody public UserDO updateAccount(String email, String password) { try { boolean result = this.userService.resetPassword(email, password); if (result) { return this.userService.getUserByEmail(email); } } catch (Exception exception) {

} return null; }

@RequestMapping(value = “/modifyMessage”, method = RequestMethod.POST) @ResponseBody public boolean modifyMessage(String ID, String telephone) { return this.userService.changeMessage(ID, telephone); }

@RequestMapping(value = “/getOwner”, method = RequestMethod.GET) @ResponseBody public UserDO getOwner(String goodsID) { return this.userService.getOwner(goodsID); }

@RequestMapping(value = “/getFiveCity”, method = RequestMethod.GET) @ResponseBody public List<String> getFiveCity() { return this.userService.getFiveCity(); }

@RequestMapping(value = “/addFriend”, method = RequestMethod.POST) @ResponseBody public boolean addFriend(String oneID, String twoID, String name) { return this.userService.addFriend(oneID, twoID, name); }

@RequestMapping(value = “/getAllFriends”, method = RequestMethod.POST) @ResponseBody public List<UserDO> getAllFriends(String oneID) { return this.userService.getAllFriends(oneID); }

@RequestMapping(value = “/checkFriend”, method = RequestMethod.POST) @ResponseBody public boolean checkFriend(String oneID, String twoID) { return this.userService.checkFriend(oneID, twoID); }

@RequestMapping(value = “/removeFriend”, method = RequestMethod.POST) @ResponseBody public boolean removeFriend(String oneID, String twoID) { return this.userService.removeFriend(oneID, twoID); } }

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/157154.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
SpringMVC的架构有什么优势?——控制器(一)
控制器是Spring MVC中最重要的组件之一,它处理来自客户端的请求并返回响应。控制器通常使用注解或XML配置方式将请求映射到处理方法上。 控制器(Controller)是Spring MVC中最重要的组件之一,它负责接收来自客户端的请求并执行相应的业务逻辑,并将结果返回给客户端。Spring MVC框架提供了多种方式来实现控制器,其中最常用的方式是使用注解或XML配置方式将请求映射到处理方法上。
一只
2024/07/02
2850
SpringMVC的架构有什么优势?——控制器(一)
杨校老师项目之基于SSM企业物流快递配送管理系统
分享是快乐的,也见证了个人成长历程,文章大多都是工作经验总结以及平时学习积累,基于自身认知不足之处在所难免,也请大家指正,共同进步。
杨校
2022/05/07
4020
杨校老师项目之基于SSM企业物流快递配送管理系统
SpringMVC框架介绍[通俗易懂]
1、前端控制器DispatcherServlet(不需要程序员开发) 作用接收请求,响应结果,相当于转发器,中央处理器。 有了DispatcherServlet减少了其它组件之间的耦合度。
全栈程序员站长
2022/09/06
1.3K0
SpringMVC框架介绍[通俗易懂]
SSM框架(spring+springmvc+mybatis)+Mysql实现的高校运动会管理系统(角色分为管理员和普通用户 功能包含普通学生老师参赛、开幕广播
本系统为了解决高校运动会复杂流程的管理,通过分学生、教师、管理员端,实现了管理员对器材、用户、项目、院系、班级、学生、教师、成绩等管理,普通用户端可以查看运动会项目信息、可以选择参赛,极大的提升了运动会线下组织和沟通人员的繁琐。
用户6334815
2022/07/24
7811
SSM框架(spring+springmvc+mybatis)+Mysql实现的高校运动会管理系统(角色分为管理员和普通用户 功能包含普通学生老师参赛、开幕广播
Spring MVC控制器的14个技巧
这是创建可以处理一个或多个请求的控制器类的最简单方法。仅通过用构造型注释一个类@Controller ,例如:
程序员小假
2025/04/19
2260
Spring+SpringMvc+Mybatis框架集成搭建教程三(框架整合测试程序开发)
(2).在main文件夹下的java源文件夹下创建com.hafiz.www包,并在该包下依次创建:
阿豪聊干货
2018/08/09
3420
Spring+SpringMvc+Mybatis框架集成搭建教程三(框架整合测试程序开发)
抛开深层次底层,快速入门SpringMVC
SpringMVC主要有三个核心部分组成,DispatcherServlet、Controller、ViewResolver。      DispatcherServlet:      请求输入时:类似于一个带分配功能的Filter,其直接与前端交互,并截所有符合 url-pattern 的请求,并根据Mapping路径分发给处理对应请求的Controller。      请求处理完毕时:将ViewResolver渲染好的视图回传给前端。      Controller:      处理Http传来的请求,通常调用Service,再在Service中调用Dao持久层进行完整的数据处理,并将处理完毕的数据返回,返回以ModelAndView的形式,Model,通俗来讲,就是承载数据的一个HashMap,而View则是数据要发送的逻辑视图名,如果View缺省,默认是转发到HTTP发起的页面。      ViewResolver:      根据Controller处理好的数据,对指定目录下的文件进行渲染解析,完毕后将视图(不一定为页面、可能是Joson、Map各种数据类型,这根据Controller回传的数据决定)返回给DispatcherServlet。
Rekent
2018/09/04
5320
抛开深层次底层,快速入门SpringMVC
分享 14 个 Spring MVC 顶级技巧!
通常,在Spring MVC中,我们编写一个控制器类来处理来自客户端的请求。然后,控制器调用业务类来处理与业务相关的任务,然后将客户端重定向到逻辑视图名称,该名称由Spring的调度程序Servlet解析,以呈现结果或输出。
Java技术栈
2020/03/10
1.2K0
SpringMVC 常用注解
1、@Controller      @Controller 用于标记在一个类上,使用它标记的类就是一个SpringMVC Controller 对象。分发处理器将会扫描使用了该注解的类的方法,并检测该方法是否使用了@RequestMapping 注解。@Controller 只是定义了一个控制器类,而使用@RequestMapping 注解的方法才是真正处理请求的处理器。      @Controller 标记在一个类上还不能真正意义上的说它就是SpringMVC 的一个控制器类,因为这个时候Spring
二十三年蝉
2018/02/28
4.5K0
Java基于ssm框架的restful应用开发
Java基于ssm框架的restful应用开发 好几年都没写过java的应用了,这里记录下使用java ssm框架、jwt如何进行rest应用开发,文中会涉及到全局异常拦截处理、jwt校验、token拦截器等内容。 1、jwt工具类 直接贴代码了,主要包括jwt的sign、verify、decode三个方法,具体实现如下: package com.isoft.util; import java.util.Date; import com.auth0.jwt.JWT; import com.auth0.j
用户1141560
2018/05/28
7050
SpringMVC的架构有什么优势?——视图与模型(二)
视图是展示结果的组件,它们负责渲染模型数据并生成HTML输出。Spring MVC支持多种视图技术,包括JSP、Thymeleaf等。 视图(View)是Spring MVC中渲染并呈现结果的组件,它们负责将模型数据渲染成HTML输出。Spring MVC支持多种视图技术,包括JSP、Freemarker、Velocity和Thymeleaf等。下面我们将深入探讨Spring MVC视图的核心概念和相应Java代码示例。
一只
2024/07/02
2710
BS1064-基于大数据存储实现互联网电子商城网站及数据分析系统
本基于大数据存储实现互联网电子商城网站及数据分析系统,系统主要采用java,hbase,springboot,mysql,mybatis,商品推荐算法,数据分析存储技术,实现基于互联网商品实现针对用户购买推荐,
计算机程序优异哥
2023/09/18
2260
BS1064-基于大数据存储实现互联网电子商城网站及数据分析系统
springmvc rest风格化案例
RESTful(RESTful Web Services)一种架构风格,表述性状态转移,它不是一个软件,也不是一个标准,而是一种思想,不依赖于任何通信协议,但是开发时要成功映射到某协议时也需要遵循其标准,但不包含对通信协议的更改
张哥编程
2024/12/17
1080
系统学习javaweb-13-SpringMVC+Hibernate
名称:SpringMVC+Hibernate 说明:分为注解版和XML版本,注解版较完善
csxiaoyao
2019/02/20
7840
Spring MVC 学习总结(九)——Spring MVC实现RESTful与JSON(Spring MVC为前端提供服务)
 很多时候前端都需要调用后台服务实现交互功能,常见的数据交换格式多是JSON或XML,这里主要讲解Spring MVC为前端提供JSON格式的数据并实现与前台交互。RESTful则是一种软件架构风格、
张果
2018/01/04
2.3K0
Spring MVC 学习总结(九)——Spring MVC实现RESTful与JSON(Spring MVC为前端提供服务)
SpringMVC传递模型数据到视图
要求:处理方法返回值类型为 ModelAndView。在方法体中我们通过该ModelAndView对象添加模型数据。
Tim在路上
2020/08/04
1.1K0
分布式事务 TCC-Transaction 源码分析 —— 运维平台
1. 概述 本文分享 运维平台。TCC-Transaction 提供了相对精简的运维平台,用于查看在《TCC-Transaction 源码分析 —— 事务存储器》提到的事务存储。目前暂时只有两个功能:
芋道源码
2018/03/27
8550
分布式事务 TCC-Transaction 源码分析 —— 运维平台
Maven工程搭建spring boot+spring mvc+JPA
1、maven工程,少不了pom.xml,spring boot的引入可参考官网:
JQ实验室
2022/02/09
4980
SpringMVC 后台跳转总结大全
很久不使用了,可以拿代码复制到项目工程下作为Demo随时查看,小白入门开发必备!!!
静谧星空TEL
2021/04/27
7340
SpringMVC+Mybatis整合的增删改查
项目文件下载地址:http://download.csdn.net/detail/u010634066/8188965
石臻臻的杂货铺[同名公众号]
2021/07/14
3580
推荐阅读
相关推荐
SpringMVC的架构有什么优势?——控制器(一)
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档