——————————DescriptionStart——————————
运行环境 Java≥8、MySQL≥5.7、Tomcat≥8
开发工具 eclipse/idea/myeclipse/sts等均可配置运行
适用 课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的JSP+Servlet大学生求职招聘管理系统(java+jsp+javascript+ajax+mysql)
项目介绍
本项目分为管理员、求职者、企业用户三种角色, 管理员角色包含以下功能: 招聘信息管理,求职信息管理,工作地点管理,求职技巧管理,职场咨询管理,系统简介管理,友情链接管理,关于我们管理,留言板管理和回复,求职者管理,企业信息管理,管理员信息管理,修改个人信息和密码等功能。
求职者角色包含以下功能: 求职者首页,求职者登录注册,招聘信息查看,企业资料查看,企业推荐查看,查看求职技巧,系统简介,留言板查看,个人简历管理,个人基本信息管理,我的工作申请,企业和工作推荐查看,企业来信查看,查看收藏的职位等功能。
企业用户角色包含以下功能: 企业登录注册,招聘信息管理,求职信息管理,人才推荐管理,企业详情管理等功能。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.数据库:MySql 5.7版本; 6.是否Maven项目:否;
技术栈
后端:Servlet 2. 前端:JSP+JavaScript+JQuery+CSS+Ajax
使用说明
使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中dbconnection.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入localhost:8080/jsp_qzzp_sys/ 登录 注:Tomcat中配置的路径必须为/jsp_qzzp_sys 管理员账号/密码:admin/admin 求职者账号/密码:qiuzhi/123456 企业账号/密码:qiye/123456
——————————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 45 46 47 public Upload () { super (); } public void destroy () { super .destroy(); } public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this .doPost(request, response); } public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { StringBuffer sb = new StringBuffer(50 ); response.setContentType("application/x-msdownload;charset=utf-8" );
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 50 } } } public static PageManager getPage (String path, int pageSize, HttpServletRequest request) { return new PageManager(path, pageSize, request); } public void doList (String hql) { this .count = this .dao.select(hql).size(); if (this .count != 0 ) { this .pageNumber = count % this .pageSize == 0 ? this .count / this .pageSize : this .count / this .pageSize + 1 ; if (this .currentPage > this .pageNumber) this .currentPage = (int ) this .pageNumber; } this .request.getSession().setAttribute("currentPage" , String.valueOf(this .currentPage)); this .collection = this .dao.select(hql, this .currentPage , this .pageSize); this .refreshUrl(); }
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 response.reset(); response.setHeader("Cache-Control" , "max-age=0" ); response.setHeader("Content-Disposition" , "attachment; filename=" + filename); try { BufferedInputStream bis = null ; BufferedOutputStream bos = null ; OutputStream fos = null ; bis = new BufferedInputStream((InputStream)new FileInputStream(request.getRealPath("/upfile/" )+"/" +filename)); fos = response.getOutputStream(); bos = new BufferedOutputStream(fos); int bytesRead = 0 ; byte [] buffer = new byte [5 * 1024 ]; while ((bytesRead = bis.read(buffer)) != -1 ) { bos.write(buffer, 0 , bytesRead); } bos.close(); bis.close(); fos.close(); } catch (Exception e) { e.printStackTrace(); }finally { } } public void init () throws ServletException { } } package util;
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 imgStr.append("<div id =picViwer1 style ='background-color: #ffffff' align =center > </div > <SCRIPT src ='/fbasite/js/dynamicImage.js' type =text/javascript > </SCRIPT > \n<script language =JavaScript > \n"); thePics1.append("var thePics1=\n'" ); theLinks1.append("var theLinks1='" ); theTexts1.append("var theTexts1='" ); List<HashMap> co = this .select("select * from hbnews order by id desc" ,1 ,6 ); int i = co.size(); int j = 0; for (HashMap b:co) { j++; int id = Integer.parseInt(b.get("id" ).toString()) ; String title = b.get("biaot" ).toString(); String url = "/fbasite/upfile/" +b.get("filename" ); String purl = "/fbasite/newxiang.jsp?id=" +b.get("id" ); if (j!=i){ thePics1.append(url.replaceAll("\n" , "" )+"|" ); theLinks1.append(purl+"|" ); theTexts1.append(title+"|" ); } if (j==i) { thePics1.append(url.replaceAll("\n" , "" )); theLinks1.append("xiang.jsp?id=" +b.get("id" )); theTexts1.append(title); } } thePics1.append("';" ); theLinks1.append("';" ); theTexts1.append("';" ); imgStr.append(thePics1+"\n" ); imgStr.append(theLinks1+"\n" ); imgStr.append(theTexts1+"\n" ); imgStr.append("\n setPic(thePics1,theLinks1,theTexts1," +width+"," +height+",'picViwer1'); </script > "); return imgStr.toString(); } private static Properties config = null;
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 50 51 52 .getParameter("currentPage" )) <= 0 ? 1 : Integer .parseInt(request.getParameter("currentPage" )); } catch (Exception e) { try { this .currentPage = Integer.parseInt((String) request .getSession().getAttribute("currentPage" )); } catch (Exception e1) { this .currentPage = 1 ; } } } public static PageManager getPage (String path, int pageSize, HttpServletRequest request) { return new PageManager(path, pageSize, request); } public void doList (String hql) { this .count = this .dao.select(hql).size(); if (this .count != 0 ) { this .pageNumber = count % this .pageSize == 0 ? this .count / this .pageSize : this .count / this .pageSize + 1 ; if (this .currentPage > this .pageNumber) this .currentPage = (int ) this .pageNumber;
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 Class.forName((String)config.get("driverClassName" )); String dburl = (String)config.get("dburl" ); conn = DriverManager.getConnection(dburl,config.get("username" ).toString(),config.get("password" ).toString()); } catch (Exception e) { e.printStackTrace(); } return conn; } public int getInt (String sql) { int i = 0 ; try { Statement st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); if (rs.next()) { i = rs.getInt(1 ); } st.close(); } catch (SQLException e) { e.printStackTrace(); } return i; } public double getDouble (String sql) { double i = 0 ; try { Statement st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); if (rs.next())
——————————PayStart——————————
项目链接: https://javayms.github.io?id=301122522008200op https://javayms.pages.dev?id=301122522008200op