2024-01-17 08:53:49 +08:00
|
|
|
server:
|
2024-01-25 13:25:57 +08:00
|
|
|
port: 3333
|
2024-01-17 08:53:49 +08:00
|
|
|
spring:
|
|
|
|
application:
|
|
|
|
#应用的名称,可选
|
2024-01-25 13:25:57 +08:00
|
|
|
name: JNDemo
|
2024-01-17 08:53:49 +08:00
|
|
|
datasource:
|
|
|
|
dynamic:
|
|
|
|
primary: master #设置默认的数据源或者数据源组,默认值即为master
|
|
|
|
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
|
datasource:
|
|
|
|
master:
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
2024-02-26 13:41:57 +08:00
|
|
|
url: jdbc:sqlserver://192.168.9.99:1433;databaseName=jn_quot;Encrypt=false;TrustServerCertificate=true;
|
2024-01-17 08:53:49 +08:00
|
|
|
username: sa
|
|
|
|
password: Itcenter110-
|
|
|
|
slave_1:
|
|
|
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
url: jdbc:sqlserver://192.168.9.182:1433;databaseName=ecology;Encrypt=false;TrustServerCertificate=true;
|
|
|
|
username: sa
|
|
|
|
password: Itcenter110-
|
|
|
|
druid:
|
|
|
|
initial-size: 1
|
|
|
|
max-active: 20
|
|
|
|
min-idle: 1
|
|
|
|
max-wait: 60000
|
|
|
|
autoconfigure:
|
|
|
|
exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration #去除Druid自动配置
|
|
|
|
servlet:
|
|
|
|
multipart:
|
|
|
|
max-file-size: 10MB
|
|
|
|
max-request-size: 10MB
|
|
|
|
|
|
|
|
logging:
|
|
|
|
level:
|
|
|
|
root: warn
|
|
|
|
com.JN: info
|
2024-02-26 09:27:19 +08:00
|
|
|
# file:
|
|
|
|
# name: logs/JIAL-ss.log
|
2024-01-17 08:53:49 +08:00
|
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
configuration:
|
|
|
|
#在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
|
2024-02-28 15:01:49 +08:00
|
|
|
map-underscore-to-camel-case: false
|
2024-01-17 08:53:49 +08:00
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
global-config:
|
|
|
|
db-config:
|
|
|
|
id-type: ASSIGN_ID
|
|
|
|
|
|
|
|
|
|
|
|
|