docs: update wg-basic/how-to-build-project-quick

This commit is contained in:
Administrator 2021-08-17 14:01:46 +00:00 committed by John Smith
parent fa544080dc
commit 2459b842a6

View File

@ -2,7 +2,7 @@
title: 快速构建项目 title: 快速构建项目
description: 如何快速构建项目 description: 如何快速构建项目
published: true published: true
date: 2021-08-17T13:54:47.580Z date: 2021-08-17T14:01:45.150Z
tags: wg-basic tags: wg-basic
editor: markdown editor: markdown
dateCreated: 2021-08-17T13:54:47.580Z dateCreated: 2021-08-17T13:54:47.580Z
@ -91,7 +91,7 @@ dependencies依赖
2. wg-basic基础项目所需依赖 2. wg-basic基础项目所需依赖
```xml ```xml
<dependencies> <dependencies>
<!-- 角色模块,该模块包含权限模块、菜单模块、组织机构模块、用户模块 --> <!-- 角色模块,该模块包含权限模块、菜单模块、组织机构模块、用户模块、文件模块 -->
<dependency> <dependency>
<groupId>ink.wgink</groupId> <groupId>ink.wgink</groupId>
<artifactId>service-role</artifactId> <artifactId>service-role</artifactId>
@ -111,10 +111,93 @@ dependencies依赖
在resources目录下创建application.yml配置 在resources目录下创建application.yml配置
```yml ```yml
server:
port: 8080
url: http://127.0.0.1:8080/system-name
system-title: 系统名称
system-sub-title: 系统子名称
servlet:
context-path: /system-name
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_system?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
initial-size: 2
min-idle: 2
max-active: 5
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
swagger:
base-package-list: ink.wgink,com.cn
file:
# 文件的保存路径,斜杠结尾
upload-path: /upload/file/path/
# 图片类型
image-types: png,jpg,jpeg,gif,blob
# 视频类型
video-types: mp4,rmvb
# 音频类型
audio-types: mp3,wmv,amr
# 文件类型
file-types: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
# 同时上传最大支持数
max-file-count: 6
# 图片输出压缩质量大于0默认0.4
image-output-quality: 0.4
logging:
file:
name: /log/file/path/logs.log
level:
root: error
org.springframework.boot.autoconfigure.security.servlet: debug
ink.wgink: debug
com.cn: debug
``` ```
# 静态资源 # 系统所需文件
# 启动项目 # 启动项目