2025-06-05 23:45:30 +08:00

64 lines
1.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

debug:
true
# Tomcat
server:
tomcat:
uri-encoding: UTF-8
port: 8281
servlet:
context-path: /yiyuanyaopinguanli
#spring:
# datasource:
# driverClassName: com.mysql.cj.jdbc.Driver
# spring:
# datasource:
# url: jdbc:mysql://110.40.62.21:3306/yiyuanyaopinguanli?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
# username: yiyuanyaopinguanli
# password: 123456
spring:
datasource:
# 配置数据源类型
type: com.zaxxer.hikari.HikariDataSource
# 配置连接数据库信息
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://110.40.62.21:3306/yiyuanyaopinguanli?characterEncoding=utf8&useSSL=false
username: yiyuanyaopinguanli
password: 123456
servlet:
multipart:
max-file-size: 1000MB
max-request-size: 1000MB
resources:
static-locations: classpath:static/,file:static/
#mybatis
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
#实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: com.entity
global-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 1
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 2
#驼峰下划线转换
db-column-underline: true
#刷新mapper 调试神器
refresh-mapper: true
#逻辑删除配置
logic-delete-value: -1
logic-not-delete-value: 0
#自定义SQL注入器
sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
#springboot 项目mybatis plus 设置 jdbcTypeForNull (oracle数据库需配置JdbcType.NULL, 默认是Other)
jdbc-type-for-null: 'null'
#打印sql语句
logging:
level:
com.dao: debug