- DDL: Schema DDL
- DML: Schema DML
-
Create a
local.propertiesfile inapp-runner/src/main/resources.Reminder: Be sure to modify the configuration values in
local.propertiesaccording to your environment (e.g., database credentials, log paths, server ports, etc.).
### Application ###
APP_NAME=XXX
### Database ###
DB_IP=127.0.0.1
DB_PORT=3306
DB_DATABASE=xxx
DB_USERNAME=xxx
DB_PASSWORD=xxx
DB_URL=jdbc:mysql://${DB_IP}:${DB_PORT}/${DB_DATABASE}?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
DB_DRIVER=com.mysql.cj.jdbc.Driver
### Log ###
LOG_PATH=/path/to/logs
### Web ###
SERVER_PORT=8080
CONTEXT_PATH=/api
### Spring Task ###
TASK_POOL_SIZE=4
TASK_THREAD_NAME_PREFIX=socialx-task-
TASK_SHUTDOWN_AWAIT_TERMINATION=true
TASK_SHUTDOWN_AWAIT_TERMINATION_PERIOD=60Run the following command to build the project:
mvn clean package -PlocalExecute the MainApplication.java class to start the application.