Run system
Preparation
- JDK ≥ 11
- MYSQL ≥ 5.5
- Maven ≥ 3.0
Configuration
Modify the database connection and edit the application-druid.yml in the resources directory.
# Data source configuration
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: database address
username: database account
password: database password
Modify the server configuration and edit application.yml in the resources directory
# Development environment configuration
server:
# HTTP port of the server
port: 8081
servlet:
# App access path
context-path: /
Install and run
- Go to the github download interface (https://github.com/hdbxx/IGAOD) to download and extract to the working directory
- Import into Eclipse, menu File -> Import, then select Maven -> Existing Maven Projects, click the Next> button, select the working directory, and then click the Finish button to import successfully.
- Eclipse will automatically load the Maven dependency package, and the initial loading will be slower
- Create database iga and import data script iga.sql
- Open the project and run com.edu.iga.IgaWebApplication.java, the following chart appears, indicating that the startup is successful.
φ(゜▽゜*)♪ IGAOD Started successfully
_____ _____ ____ _____
|_ _/ ____| /\ / __ \| __ \
| || | __ / \ | | | | | | |
| || | |_ | / /\ \| | | | | | |
_| || |__| |/ ____ \ |__| | |__| |
|_____\_____/_/ \_\____/|_____/
- Open the browser and enter: (http://localhost:8081) If the page can be displayed correctly, it means that the environment is set up successfully.