# mxpio-boot-example **Repository Path**: i_mxpio/mxpio-boot-example ## Basic Information - **Project Name**: mxpio-boot-example - **Description**: An Example for mxpio-boot - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2022-01-25 - **Last Updated**: 2025-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mxpio-boot-example #### 介绍 mxpio-boot 的示例项目, 框架地址:[mxpio-boot](https://gitee.com/i_mxpio/mxpio-boot) #### 快速开始 检出代码 ```bash git clone https://gitee.com/i_mxpio/mxpio-boot-example.git ``` 修改配置文件resources/application-dev.yml ```yaml server: # 服务端口号 port: 9005 tomcat: max-swallow-size: -1 servlet: # 服务跟路径 context-path: spring: servlet: multipart: max-file-size: 10MB max-request-size: 10MB jpa: open-in-view: false showSql: true hibernate: ddl-auto: update # 数据库配置 datasource: url: jdbc:mysql://localhost:3306/mboot?characterEncoding=utf-8&useSSL=true username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver sql-script-encoding: UTF-8 continue-on-error: true initialization-mode: ALWAYS # redis配置 redis: host: 127.0.0.1 port: 6379 password: timeout: pool: maxActive: 8 maxWait: -1 maxIdle: 8 minIdle: 0 ... ``` 编译打包 ```bash cd mxpio-boot-example mvn clean package spring-boot:repackage ``` 启动项目 ```bash java -jar mxpio-boot-example\target\mxpio-boot-example-1.0.0.jar ```