GithubHelp home page GithubHelp logo

jf-gjt / personnel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1067649786/personnel

0.0 0.0 0.0 2.52 MB

SpringBoot+Vue实现人事管理系统

Home Page: https://www.shiyanlou.com/courses/1346

JavaScript 34.15% Java 21.99% HTML 0.33% Vue 26.56% TSQL 16.97%

personnel's Introduction

项目整体功能结构

图片描述

项目总共分为五大功能模块,分别是员工资料、人事管理、薪酬管理、统计管理和系统管理

快速启动

在实验环境中,创建好数据库后,切换工作空间进入vhr目录通过mvn spring-boot:run就可以运行了。

如果不在实验楼的在线环境运行,要在自己本地环境运行就需要以下步骤:

1.下载项目到本地

2.在 MySQL 中执行数据库脚本

3.将 application.properties 文件中的server.port改成 8082,因为前端启动的时候会占用 8080 端口

4.在 IntelliJ IDEA 中运行 vhr 项目

OK,至此,服务端就启动成功了,此时我们直接在地址栏输入http://localhost:8082/index.html 即可访问我们的项目,如果要做二次开发,请继续看第五、六步。

5.进入到 vuehr 目录中,在命令行依次输入如下命令:

# 安装依赖
npm install

# 在 localhost:8080 启动项目
npm run dev

由于我在 vuehr 项目中已经配置了端口转发,将数据转发到 SpringBoot 上,因此项目启动之后,在浏览器中输入 http://localhost:8080 就可以访问我们的前端项目了,所有的请求通过端口转发将数据传到 SpringBoot 中(注意此时不要关闭 SpringBoot 项目)。

6.最后可以用 IntelliJ IDEA 等工具打开 vuehr 项目,继续开发,开发完成后,当项目要上线时,依然进入到 vuehr 目录,然后执行如下命令:

npm run build

该命令执行成功之后,vuehr 目录下生成一个 dist 文件夹,将该文件夹中的两个文件 static 和 index.html 拷贝到 SpringBoot 项目中 resources/static/目录下,然后就可以像第 4 步那样直接访问了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.