server: port: 8766 #8764新珠江,8766广合科技,8767广大科技,8768珠江国际,8769保利山庄,8770东莞迎宾馆 spring: application: name: jnd-user-service datasource: #添加allowMultiQueries=true 在批量更新时才不会出错 url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=mh_jnd2;allowMultiQueries=true driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver username: sa password: mh@803 name: hikari type: com.zaxxer.hikari.HikariDataSource hikari: minimum-idle: 10 maximum-pool-size: 50 connection-timeout: 30000 idle-timeout: 60000 validation-timeout: 30000 connection-test-query: select 1 max-lifetime: 1800000 rabbitmq: host: 127.0.0.1 port: 5672 username: guest password: guest virtual-host: /jnd listener: direct: prefetch: 2 simple: prefetch: 2 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 # 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 mybatis-plus: mapper-locations: classpath:com/mh/user/sqlmapper/*.xml configuration: map-underscore-to-camel-case: true type-aliases-package: com.mh.user.entity pagehelper: reasonable: true support-methods-arguments: true params: countSql wechat: mpAppId: wx5653d0f930e98414 mpAppSecret: 3473cbd80e891e4e7da1b1b71ae3a5a2 redirectUri: https://35gm72cu2458.vicp.fun/wechat/userInfo # 生成微信授权 authorizedUrl: https://open.weixin.qq.com/connect/oauth2/authorize?appid=mpAppId&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect # 获取code后,请求以下链接获取access_token access_token: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET # 拉取用户信息(需scope为 snsapi_userinfo) userinfo: https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN # 消息推送url pushUrl: https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN baseUrl: https://35gm72cu2458.vicp.fun