#服务端口号
|
server:
|
port: 8090
|
# servlet:
|
# context-path: /motor
|
|
#数据库
|
spring:
|
servlet:
|
multipart:
|
max-file-size: 300MB
|
max-request-size: 500MB
|
|
datasource:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
# url: jdbc:mysql://localhost:3360/db_experiment?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
# url: jdbc:mysql://192.168.10.221:3360/db_experiment?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
url: jdbc:mysql://192.168.10.79:3360/db_experiment?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
# url: jdbc:mysql://192.168.10.222:3360/db_experiment?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
# url: jdbc:mysql://118.89.139.230:3360/db_experiment?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
username: root
|
password: lmx8688139
|
maxIdel: 60
|
initialPoolSize: 2
|
minPoolSize: 2
|
maxPoolSize: 500
|
mybatis-plus:
|
typeAliasesPackage: com.whyc.pojo,com.whyc.dto
|
mapper-locations: classpath:mapper/**/*Mapper.xml
|
global-config:
|
db-config:
|
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
id-type: AUTO
|
#驼峰下划线转换
|
table-underline: true
|
#数据库大写下划线转换
|
capital-mode: true
|
#mp2.3+ 全局表前缀 tb_
|
table-prefix: tb_
|
#刷新mapper 调试神器
|
# refresh-mapper: true
|
configuration:
|
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
|
map-underscore-to-camel-case: true
|
cache-enabled: false
|
#mybatis日志输出
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
pagehelper:
|
helper-dialect: mysql
|
reasonable: false
|
support-methods-arguments: true
|
params: count=countSql
|
#swagger是否激活,swagger的UI界面地址为 localhost:8080/swagger-ui.html
|
#swagger:
|
# enabled: true
|
# ui-config:
|
# operations-sorter: method
|
# title: 武汉源畅-3.5WM电机系统
|
# authorization:
|
# type: None
|
# auth-regex: none
|
# base-package: com.whyc.controller
|
knife:
|
enable: true
|
# enable: fase
|
|
#com.whyc.config.StaticResourceConfig 下配置对应映射
|
file:
|
filePath: c:/upload/
|