Java毕设项目——人才招聘网站(java+SpringBoot+Maven+Mysql+Jsp)
文末獲取源碼?
開發(fā)語言:Java
框架:SpringBoot
技術:Jsp
JDK版本:JDK1.8
服務器:tomcat7
數(shù)據(jù)庫:mysql 5.7/8.0
數(shù)據(jù)庫工具:Navicat11
開發(fā)軟件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
瀏覽器:谷歌瀏覽器
一、前言介紹???
隨著社會的發(fā)展,社會的各行各業(yè)都在利用信息化時代的優(yōu)勢。計算機的優(yōu)勢和普及使得各種信息系統(tǒng)的開發(fā)成為必需。
人才招聘網(wǎng)站,主要的模塊包括查看管理員;個人中心、用戶管理、企業(yè)管理、招聘信息管理、投遞信息管理、面試信息管理、招聘結(jié)果管理、系統(tǒng)管理等功能。系統(tǒng)中管理員主要是為了安全有效地存儲和管理各類信息,還可以對系統(tǒng)進行管理與更新維護等操作,并且對后臺有相應的操作權限。
要想實現(xiàn)人才招聘網(wǎng)站的各項功能,需要后臺數(shù)據(jù)庫的大力支持。管理員驗證注冊信息,收集的畢業(yè)生信息,并由此分析得出的關聯(lián)信息等大量的數(shù)據(jù)都由數(shù)據(jù)庫管理。本文中數(shù)據(jù)庫服務器端采用了Mysql作為后臺數(shù)據(jù)庫,使Web與數(shù)據(jù)庫緊密聯(lián)系起來。在設計過程中,充分保證了系統(tǒng)代碼的良好可讀性、實用性、易擴展性、通用性、便于后期維護、操作方便以及頁面簡潔等特點。
本系統(tǒng)的開發(fā)使獲取人才招聘網(wǎng)站信息能夠更加方便快捷,同時也使人才招聘網(wǎng)站信息變的更加系統(tǒng)化、有序化。系統(tǒng)界面較友好,易于操作。
二、系統(tǒng)設計規(guī)則?
本人才招聘網(wǎng)站采用Java技術,Mysql數(shù)據(jù)庫開發(fā),充分保證了系統(tǒng)穩(wěn)定性、完整性。
人才招聘網(wǎng)站的設計與實現(xiàn)的設計思想如下:
1、操作簡單方便、系統(tǒng)界面安全良好:簡單明了的頁面布局,方便查詢管理的相關信息。
2、即時可見:對人才招聘網(wǎng)站信息的處理將立馬在對應地點可以查詢到,從而實現(xiàn)“即時發(fā)布、即時見效”的系統(tǒng)功能。
3、功能的完善性:可以管理管理員;個人中心、用戶管理、企業(yè)管理、招聘信息管理、投遞信息管理、面試信息管理、招聘結(jié)果管理、系統(tǒng)管理,
企業(yè);個人中心、招聘信息管理、投遞信息管理、面試信息管理、招聘結(jié)果管理,
用戶;個人中心、投遞信息管理、面試信息管理、招聘結(jié)果管理、我的收藏管理,
前臺首頁;首頁、招聘信息、公告信息、個人中心、后臺管理。
三、系統(tǒng)展示
首頁
招聘信息
管理員功能模塊?
企業(yè)管理
招聘信息管理
?
投遞信息管理
部分核心代碼??
上傳文件
* 上傳文件*/@RequestMapping("/upload")public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {if (file.isEmpty()) {throw new EIException("上傳文件不能為空");}String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);String fileName = new Date().getTime()+"."+fileExt;File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);file.transferTo(dest);/*** 如果使用idea或者eclipse重啟項目,發(fā)現(xiàn)之前上傳的圖片或者文件丟失,將下面一行代碼注釋打開* 請將以下的"D:\\ssmpiv99\\src\\main\\webapp\\upload"替換成你本地項目的upload路徑,* 并且項目路徑不能存在中文、空格等特殊字符*///FileUtils.copyFile(dest, new File("D:\\ssmpiv99\\src\\main\\webapp\\upload"+"/"+fileName)); /**修改了路徑以后請將該行最前面的//注釋去掉**/if(StringUtils.isNotBlank(type) && type.equals("1")) {ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));if(configEntity==null) {configEntity = new ConfigEntity();configEntity.setName("faceFile");configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put("file", fileName);}用戶登錄
/*** 登錄*/@IgnoreAuth@RequestMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", username));if(user==null || !user.getMima().equals(password)) {return R.error("賬號或密碼不正確");}String token = tokenService.generateToken(user.getId(), username,"yonghu", "用戶" );return R.ok().put("token", token);}招聘信息
/*** 招聘信息* 后端接口* @author * @email * @date 2022-04-14 21:27:23*/ @RestController @RequestMapping("/zhaopinxinxi") public class ZhaopinxinxiController {@Autowiredprivate ZhaopinxinxiService zhaopinxinxiService;@Autowiredprivate StoreupService storeupService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,ZhaopinxinxiEntity zhaopinxinxi, HttpServletRequest request){String tableName = request.getSession().getAttribute("tableName").toString();if(tableName.equals("qiye")) {zhaopinxinxi.setQiyezhanghao((String)request.getSession().getAttribute("username"));}EntityWrapper<ZhaopinxinxiEntity> ew = new EntityWrapper<ZhaopinxinxiEntity>();PageUtils page = zhaopinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhaopinxinxi), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,ZhaopinxinxiEntity zhaopinxinxi, HttpServletRequest request){EntityWrapper<ZhaopinxinxiEntity> ew = new EntityWrapper<ZhaopinxinxiEntity>();PageUtils page = zhaopinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhaopinxinxi), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( ZhaopinxinxiEntity zhaopinxinxi){EntityWrapper<ZhaopinxinxiEntity> ew = new EntityWrapper<ZhaopinxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( zhaopinxinxi, "zhaopinxinxi")); return R.ok().put("data", zhaopinxinxiService.selectListView(ew));}/*** 查詢*/@RequestMapping("/query")public R query(ZhaopinxinxiEntity zhaopinxinxi){EntityWrapper< ZhaopinxinxiEntity> ew = new EntityWrapper< ZhaopinxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( zhaopinxinxi, "zhaopinxinxi")); ZhaopinxinxiView zhaopinxinxiView = zhaopinxinxiService.selectView(ew);return R.ok("查詢招聘信息成功").put("data", zhaopinxinxiView);}/*** 后端詳情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){ZhaopinxinxiEntity zhaopinxinxi = zhaopinxinxiService.selectById(id);return R.ok().put("data", zhaopinxinxi);}/*** 前端詳情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){ZhaopinxinxiEntity zhaopinxinxi = zhaopinxinxiService.selectById(id);return R.ok().put("data", zhaopinxinxi);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody ZhaopinxinxiEntity zhaopinxinxi, HttpServletRequest request){zhaopinxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(zhaopinxinxi);zhaopinxinxiService.insert(zhaopinxinxi);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody ZhaopinxinxiEntity zhaopinxinxi, HttpServletRequest request){zhaopinxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(zhaopinxinxi);zhaopinxinxiService.insert(zhaopinxinxi);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody ZhaopinxinxiEntity zhaopinxinxi, HttpServletRequest request){//ValidatorUtils.validateEntity(zhaopinxinxi);zhaopinxinxiService.updateById(zhaopinxinxi);//全部更新return R.ok();}/*** 刪除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){zhaopinxinxiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<ZhaopinxinxiEntity> wrapper = new EntityWrapper<ZhaopinxinxiEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}String tableName = request.getSession().getAttribute("tableName").toString();if(tableName.equals("qiye")) {wrapper.eq("qiyezhanghao", (String)request.getSession().getAttribute("username"));}int count = zhaopinxinxiService.selectCount(wrapper);return R.ok().put("count", count);}}總結(jié)
以上是生活随笔為你收集整理的Java毕设项目——人才招聘网站(java+SpringBoot+Maven+Mysql+Jsp)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MATLAB 矩阵的特征值与特征向量
- 下一篇: MySQL 数据备份与恢复