基于Springboot+Mybatis+mysql+vue+html校园招聘管理系统

二、系统介绍

学生 : 个人中心、简历信息管理、应聘信息管理

企业 :个人中心、招聘信息管理、应聘信息管理

管理员:用户管理,企业信息管理,岗位分类管理,学历信息管理,友情链接管理,系统管理,我的收藏管理,管理员管理,招聘信息管理等

运行环境 :

系统开发平台:JDK1.8+Windows+Maven3.6.1

开发语言:JavaEE+vue

后台框架:Springboot

前端:Vue2.9.6

数据库:MySql5.7以上

开发环境: Intelij Idea

浏览器: Chrome或360浏览器

三、功能展示

1.首页

位于首页最上方的是导航栏,系统导航栏有:首页,招聘信息,求职者信息,友情链接,留言板,后台管理,登录
在这里插入图片描述

2.个人中心(学生端)

在这里插入图片描述

3.简历信息管理(学生端)

在这里插入图片描述

4.应聘信息(学生端)

在这里插入图片描述

5.企业信息(企业)

在这里插入图片描述

6.招聘信息管理(企业)

在这里插入图片描述

7.应聘信息管理(企业)

在这里插入图片描述

8.后台管理(管理员)

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

四、代码展示

package com.fang.backgroundapi.controller;

import com.fang.backgroundapi.common.ResponseCode;
import com.fang.backgroundapi.common.ServerResponse;
import com.fang.backgroundapi.exception.MyException;
import com.fang.backgroundapi.pojo.DO.ImageUpload;
import com.fang.backgroundapi.service.impl.ImageUploadServiceImpl;
import com.google.gson.Gson;
import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.Region;
import com.qiniu.storage.UploadManager;
import com.qiniu.storage.model.DefaultPutRet;
import com.qiniu.util.Auth;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author 
 * @Description: OSS对象存储控制器
 * @create 2022/1/16 14:36
 **/
@RestController
@RequestMapping("/oss")
@Api(tags = "OSS对象存储控制器")
@Slf4j
public class OSSController extends BaseController {

    @Autowired
    private ImageUploadServiceImpl imageUploadService;

    private final String ACCESS_KEY = "tz2qyudkdq8-vBpT_U93E3TBZxUXXRCDkSMo5Q9C";
    private final String SECRET_KEY = "5FChEdodFIOUQ4wCNRN8_ZTPMTYGDsC1ShJNnnLS";
    private final String BUCKET = "img9527";

    @PostMapping("/upload")
    @ApiOperation(value = "上传接口", response = ServerResponse.class, httpMethod = "POST")
    public ServerResponse upload(MultipartFile file) throws MyException {
        if (file.isEmpty()) {
            return ServerResponse.error(ResponseCode.FAIL.getCode(), ResponseCode.FAIL.getDesc(), null);
        }
        String authorId = super.getAuthorId();
        //检查格式
        String[] fileType = file.getContentType().split("/");
        log.info("{}---->上传", authorId);
        log.info("上传文件类型:{}", fileType);
        if (!("png".equals(fileType[1]) || "jpeg".equals(fileType[1]))) {
            log.info("不支持上传{}类型", fileType);
            return ServerResponse.error(ResponseCode.FAIL.getCode(), ResponseCode.FAIL.getDesc(), null);
        }
        //文件大小做了整体配置,超过2M无法上传

        // 自检通过,上传到七牛云,这些都是默认配置
        Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY);
        String upToken = auth.uploadToken(BUCKET);
        Region region = new Region.Builder().
                region("z2").
                srcUpHost("up-z2.qiniup.com", "up-dg.qiniup.com", "up-fs.qiniup.com").
                accUpHost("upload-z2.qiniup.com", "upload-dg.qiniup.com", "upload-fs.qiniup.com").
                iovipHost("iovip-z2.qbox.me").
                rsHost("rs-z2.qbox.me").
                rsfHost("rsf-z2.qbox.me").
                apiHost("api-z2.qiniu.com").
                build();
        Configuration cfg = new Configuration(region);

        cfg.useHttpsDomains = false;
        UploadManager uploadManager = new UploadManager(cfg);
        DefaultPutRet putRet = null;
        try {
            Response response = uploadManager.put(file.getInputStream(),null,upToken,null, null);
            //解析上传成功的结果
            putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class);
            System.out.println(putRet.key);
            System.out.println(putRet.hash);
        } catch (QiniuException ex) {
            ex.printStackTrace();
            log.error("OSS存储错误-----> {}", ex.getMessage());
            throw new MyException("出错了", 5000, ex);
        } catch (IOException e) {
            e.printStackTrace();
            log.error("OSS存储错误-----> {}", e.getMessage());
            throw new MyException("出错了", 5000, e);
        }

        if (putRet != null){
            // 数据库保存
            ImageUpload imageUpload = new ImageUpload();
            imageUpload.setAuthorId(authorId);
            imageUpload.setOriginalName(file.getOriginalFilename());
            imageUpload.setSize(file.getSize());
            imageUpload.setAddress("http://r96uify9u.hn-bkt.clouddn.com/" + putRet.key);
            imageUpload.setUploader(authorId);
            imageUpload.setType(fileType[1]);
            imageUploadService.save(imageUpload);
            return ServerResponse.success(imageUpload.getAddress());
        }
        return ServerResponse.error(5000,"oss存储失败", "NullPointerException");
    }

}

五、其它系统

Java+Swing实现学生选课管理系统
Java+Swing实现学校教务管理系统
Java+Swing+sqlserver学生成绩管理系统
Java+Swing用户信息管理系统
Java+Swing实现的五子棋游戏
基于JavaSwing 银行管理系统
Java+Swing+mysql仿QQ聊天工具
Java+Swing 聊天室
Java+Swing+dat文件存储实现学生选课管理系统
Java+Swing可视化图像处理软件
Java+Swing学生信息管理系统
Java+Swing图书管理系统
Java+Swing图书管理系统2.0
基于java+swing+mysql图书管理系统3.0
大作业-基于java+swing+mysql北方传统民居信息管理系统

六、获取源码

点击下载:
基于Springboot+Mybatis+mysql+vue+html校园招聘管理系统

  • 3
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

五星资源

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值