Skip to content

xxxxwhh/dev-template

 
 

Repository files navigation

APP Template

Project Structure

Project Structure UML

Quick Start

1. Run DDL & DML

2. Edit Configuration

  1. Create a local.properties file in app-runner/src/main/resources.

    Reminder: Be sure to modify the configuration values in local.properties according 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=60

3. Package the Application

Run the following command to build the project:

mvn clean package -Plocal

4. Run the Application

Execute the MainApplication.java class to start the application.

About

develop template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.7%
  • Shell 0.3%