server: port: 8766 #8764新珠江,8766广合科技,8767广大科技,8768珠江国际,8769保利山庄,8770东莞迎宾馆 spring: application: name: jnd-user-service datasource: name: druidDataSource type: com.alibaba.druid.pool.DruidDataSource druid: #添加allowMultiQueries=true 在批量更新时才不会出错 url: jdbc:sqlserver://111.230.50.186:32012;DatabaseName=mh_jnd;allowMultiQueries=true driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver username: jnd password: Mh@803tech filters: stat,wall,log4j,config max-active: 100 initial-size: 1 max-wait: 60000 min-idle: 1 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: select 'x' test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-open-prepared-statements: 50 max-pool-prepared-statement-per-connection-size: 50 rabbitmq: host: 127.0.0.1 port: 5672 username: guest password: guest virtual-host: /jnd listener: direct: prefetch: 2 simple: prefetch: 2 # redis: # database: 0 # host: 127.0.0.1 # port: 6379 # password: 123456 # timeout: 3000 #链接超时时间 # lettuce: # pool: # max-active: 8 #连接池最大连接数(使用负值没有限制) # max-wait: -1 #最大等待时间,使用负值没有限制 # max-idle: 8 #最大空闲连接,使用负值没有限制 # min-idle: 0 #默认最小空闲连接 默认0 # redis配置 # cloud: # config: # uri: http://localhost:8769 # fail-fast: true # profiles: # active: pro # consul: # host: localhost # port: 8500 # discovery: # service-name: ${spring.application.name} # application: # name: user-service # 开放健康检查接口 #management: # endpoints: # web: # exposure: # include: "*" # endpoint: # health: # show-details: ALWAYS #files: # path: ${file-path:d:/files} log: level: root: info my: debug file: maxsize: 30MB #设置将SQL语句打印到控制台 level后面是 mybatis接口目录 logging: level: com: mh: user: mapper: DEBUG file: max-size: 30 path: logs/${spring.application.name} ##软件最后更新日期20230116