周末本來是配女友逛街的日子,但是最近沉迷技術無法自拔!
還把女友得罪了,我給女友轉了一520的紅包!我說你去逛街吧,我要寫代碼!
金九銀十來了,小伙伴們,沖啊!前面已經整理了很多的面試題,拿去學習吧!
1,??爆肝!整理了一周的Spring面試大全【含答案】,吊打Java面試官【建議收藏】!??
2,??肝完了,一天掌握資料結構和演算法面試題,吊打面試官,建議收藏??
3,??集合很簡單?開什么玩笑?肝了一周,全是精華,萬字講解!面試再不怕集合問題了!!!??
4,肝完了,總結了SpringBoot與快取的知識點,快速掌握
5,Mysql面試大全,看完可以吊打面試官!!!
6,入計算機專業的師弟師妹,別再迷茫了,我整理一份CS的學習路線大全!幫你超越大部分的同學!
7,??專科出身拿到阿里offer,小孟直呼666!【付硬核面試】??
8,??設計模式肝完了,還挺全!騰訊和阿里的offer已拿!??
廢話不叨叨,直接上干貨!
目錄
1,系統原始碼下載地址
2,系統環境
3,系統環境配置
4,系統核心代碼
5,資料表設計
1,系統原始碼下載地址
https://gitee.com/springmeng/campusrecuit-system
代碼開源,代碼開源,代碼開源,無任何套路!
還有完整的視頻教程,只限制用于學習使用:
視頻教程
可以說是,教程非常的詳細了:

2,系統環境
系統開發平臺:JDK1.8 + Windows 7+Maven3.6.1
開發語言:JavaEE+vue
后臺框架:Springboot
前端:Vue2.9.6
資料庫:MySql5.7 Navicat
開發環境:Intellij Idea
瀏覽器:Chrome或360瀏覽器
3,系統環境配置
前置條件:系統已經安裝了Mysql5.7、Mysql工具(Navicat)、JDK1.8、Maven3.6.1、vue3.0以下開發環境、 Intellij Idea、 Chrome或360瀏覽器
1、匯入資料庫
2、編譯前端代碼vue
編譯:npm install
試運行:npm run serve
3、匯入后端代碼springboot
4、啟動springboot
,4,系統的演示
校園招聘系統主要是招聘的功能開發,包括用戶、企業、管理員,系統的功能非常的多,系統的截圖如下所示:







4,系統核心代碼
CommonController
@RestController
public class CommonController{
@Autowired
private CommonService commonService;
@Autowired
private ConfigService configService;
private static AipFace client = null;
private static String BAIDU_DITU_AK = null;
@RequestMapping("/location")
public R location(String lng,String lat) {
if(BAIDU_DITU_AK==null) {
BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue();
if(BAIDU_DITU_AK==null) {
return R.error("請在配置管理中正確配置baidu_ditu_ak");
}
}
Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
return R.ok().put("data", map);
}
/**
* 人臉比對
*
* @param face1 人臉1
* @param face2 人臉2
* @return
*/
@RequestMapping("/matchFace")
public R matchFace(String face1, String face2) {
if(client==null) {
/*String AppID = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "AppID")).getValue();*/
String APIKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "APIKey")).getValue();
String SecretKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "SecretKey")).getValue();
String token = BaiduUtil.getAuth(APIKey, SecretKey);
if(token==null) {
return R.error("請在配置管理中正確配置APIKey和SecretKey");
}
client = new AipFace(null, APIKey, SecretKey);
client.setConnectionTimeoutInMillis(2000);
client.setSocketTimeoutInMillis(60000);
}
JSONObject res = null;
try {
File file1 = new File(ResourceUtils.getFile("classpath:static/upload").getAbsolutePath()+"/"+face1);
File file2 = new File(ResourceUtils.getFile("classpath:static/upload").getAbsolutePath()+"/"+face2);
String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
MatchRequest req1 = new MatchRequest(img1, "BASE64");
MatchRequest req2 = new MatchRequest(img2, "BASE64");
ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
requests.add(req1);
requests.add(req2);
res = client.match(requests);
System.out.println(res.get("result"));
} catch (FileNotFoundException e) {
e.printStackTrace();
return R.error("檔案不存在");
} catch (IOException e) {
e.printStackTrace();
}
return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
}
ConfigController
/**
* 登錄相關
*/
@RequestMapping("config")
@RestController
public class ConfigController{
@Autowired
private ConfigService configService;
/**
* 串列
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
* 串列
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
* 資訊
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
ConfigEntity config = configService.selectById(id);
return R.ok().put("data", config);
}
UserController
/**
* 登錄相關
*/
@RequestMapping("users")
@RestController
public class UserController{
@Autowired
private UserService userService;
@Autowired
private TokenService tokenService;
/**
* 登錄
*/
@IgnoreAuth
@PostMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null || !user.getPassword().equals(password)) {
return R.error("賬號或密碼不正確");
}
String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
return R.ok().put("token", token);
}
/**
* 注冊
*/
@IgnoreAuth
@PostMapping(value = "/register")
public R register(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用戶已存在");
}
userService.insert(user);
return R.ok();
}
/**
* 退出
*/
@GetMapping(value = "logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
代碼很多,具體的自己下載吧,有問題留言,系統沒有任何問題:
https://gitee.com/springmeng/campusrecuit-system
5,資料表設計
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL COMMENT '配置引數名稱',
`value` varchar(100) DEFAULT NULL COMMENT '配置引數值',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='組態檔';
DROP TABLE IF EXISTS `discussqiuzhizhexinxi`;
CREATE TABLE `discussqiuzhizhexinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`refid` bigint(20) NOT NULL COMMENT '關聯表id',
`content` varchar(200) NOT NULL COMMENT '評論內容',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='求職者資訊評論表';
DROP TABLE IF EXISTS `discusszhaopinxinxi`;
CREATE TABLE `discusszhaopinxinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`refid` bigint(20) NOT NULL COMMENT '關聯表id',
`content` varchar(200) NOT NULL COMMENT '評論內容',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='招聘資訊評論表';
DROP TABLE IF EXISTS `gangweifenlei`;
CREATE TABLE `gangweifenlei` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`gangweileibie` varchar(200) DEFAULT NULL COMMENT '崗位類別',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1596203316887 DEFAULT CHARSET=utf8 COMMENT='崗位分類';
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`content` longtext NOT NULL COMMENT '內容',
`userid` bigint(20) NOT NULL COMMENT '留言人id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1596712023224 DEFAULT CHARSET=utf8 COMMENT='留言板';
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`title` varchar(200) NOT NULL COMMENT '標題',
`picture` varchar(200) NOT NULL COMMENT '圖片',
`content` longtext NOT NULL COMMENT '內容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1596204167472 DEFAULT CHARSET=utf8 COMMENT='新聞資訊';
DROP TABLE IF EXISTS `qiuzhizhexinxi`;
CREATE TABLE `qiuzhizhexinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`yonghuming` varchar(200) DEFAULT NULL COMMENT '用戶名',
`xingming` varchar(200) DEFAULT NULL COMMENT '姓名',
`xingbie` varchar(200) DEFAULT NULL COMMENT '性別',
`dianhua` varchar(200) DEFAULT NULL COMMENT '電話',
`zhaopian` varchar(200) DEFAULT NULL COMMENT '照片',
`xueli` varchar(200) DEFAULT NULL COMMENT '學歷',
`gangweileibie` varchar(200) DEFAULT NULL COMMENT '崗位類別',
`jianli` varchar(200) DEFAULT NULL COMMENT '簡歷',
`gongzuojingli` longtext COMMENT '作業經歷',
`gerenjibenqingkuang` longtext COMMENT '個人基本情況',
`thumbsupnum` int(11) DEFAULT '0' COMMENT '贊',
`crazilynum` int(11) DEFAULT '0' COMMENT '踩',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1596372486542 DEFAULT CHARSET=utf8 COMMENT='求職者資訊';
DROP TABLE IF EXISTS `qiyexinxi`;
CREATE TABLE `qiyexinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`qiyebianhao` varchar(200) DEFAULT NULL COMMENT '企業編號',
`mima` varchar(200) DEFAULT NULL COMMENT '密碼',
`qiyemingcheng` varchar(200) DEFAULT NULL COMMENT '企業名稱',
`fuzeren` varchar(200) DEFAULT NULL COMMENT '負責人',
`lianxidianhua` varchar(200) DEFAULT NULL COMMENT '聯系電話',
`qiyeyouxiang` varchar(200) DEFAULT NULL COMMENT '企業郵箱',
`qiyejieshao` longtext COMMENT '企業介紹',
PRIMARY KEY (`id`),
UNIQUE KEY `qiyebianhao` (`qiyebianhao`)
) ENGINE=InnoDB AUTO_INCREMENT=1596200834702 DEFAULT CHARSET=utf8 COMMENT='企業資訊';
我是小孟,記得點個贊支持下,謝了!
小伙伴們點贊、收藏、評論,一鍵三連走起呀,下期見~~

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/296563.html
標籤:java
