Micro Human Resource Management System
It is a human resource management system with separation of front and back ends. The project uses java language, springboot is used on the back-end framework, and the front-end framework is mainly developed using vue and ElementUI. The database uses the MySQL open source relational database (to facilitate open source and reduce expenditure). The database connection layer uses the MyBatis framework, which can basically meet the performance requirements. The background authority management uses the shiro framework for authority management.
Overall, the framework is relatively simple, without too many packaging frameworks, which is convenient for our junior and intermediate java programmers to use or learn.
01
1. Vue 2. ElementUI 3.axios 4. vue-router
02
Database Design
The database mainly contains five tables, namely resource table, role table, user table, resource role table, and user role table:
03
Environment setup
The server side uses SpringBoot to develop and build the process as follows:
1. Create a SpringBoot project
Create a SpringBoot project in IDEA, and add dependencies after creation:
<dependencies>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.29</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
2. Configure the database
Configure the database in application.properties as follows:
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/vhr?useUnicode=true&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=123
server.port=8082
04
Quickly deploy the project 1. Clone the project to the local [email protected]:lenve/vhr.git 2. The database script is placed in the resources directory of the hrserver project, and the database script is executed in MySQL 3. The database configuration is in the resources directory of the hrserver project 4. Start the IntelliJ project in the application.properties file , enter http://localhost:port/index.html
05
Download source project and source code
https://pan.baidu.com/s/1Y6rflxKm_5xxPB3RXZRq-w
Extraction code: tgxj
Scan QR code to follow
(WeChat)
Disclaimer
[ Writing instructions ] The above content is shared with programmers who like to program and have dreams, and hope to help you. The above article belongs to the original public account. If you need to reprint, please indicate the source. [ Disclaimer ] This public platform is not an advertiser, nor does it advertise for other third-party websites or individuals. The source code and articles shared here are some of the projects that I think are good in the project and study. Some voluntary download or payment behaviors generated by users. There is no direct relationship with the platform [ Submission Email ] [email protected] Welcome to contribute and share your high-quality source code or articles