Creation of a simple web application
- 1. Database design and creation
- 2. Use maven to create a SpringBoot project
-
- 2.1. Configure maven
- 2.2. Install idea
- 2.3. Use idea to create a maven project
- 2.4. Configure the pom.xml file and configure project startup-related files as needed.
- 2.5. Write the SpringBoot project startup file
- 2.6. Divide the project hierarchy, and then use mybatiscodehelper to generate code for other layers except the controller layer.
- 3. Front-end project creation
- 4. Improvement of business code, improvement of front-end interface design, etc.
1. Database design and creation
1.1. Database system
entities, attributes, relationships
员工表:“员工编号”、员工姓名、出生日期、“岗位编号”;
岗位表:“岗位编号”、岗位名称、岗位级别、岗位职责;(做了修改)
部门表:“部门编号”、岗位名称、办公地点;
调岗表:“员工编号”、“岗位编号”、起始时间、结束时间;
Employee Table: "Employee ID", Employee Name, Date of Birth;
Position Table: "Position ID", Position Name, Position Level, Job Responsibilities;
Department Table: "Department ID", Position Name, Office Location;
Job Transfer Table: "Employee ID", "Position ID", Start Time, End Time;