application.yml

    xiaoxiao2025-03-31  12

    server: port: 444 eureka: client: service-url: defaultZone: http://localhost:8072/eureka/ spring: application: name: account-service datasource: name: mysqlTest type: com.alibaba.druid.pool.DruidDataSource #druid相关配置 druid: #监控统计拦截的filters filters: stat driver-class-name: com.mysql.jdbc.Driver #基本属性 url: jdbc:mysql://localhost:3306/*************?setUnicode=true&characterEncoding=utf8&serverTimezone=GMT+8 username: root password: 123456 #配置初始化大小/最小/最大 initial-size: 1 min-idle: 5 max-active: 100 #获取连接等待超时时间 max-wait: 60000 #间隔多久进行一次检测,检测需要关闭的空闲连接 time-between-eviction-runs-millis: 60000 #一个连接在池中最小生存的时间 min-evictable-idle-time-millis: 300000 test-while-idle: true test-on-borrow: false test-on-return: false #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false pool-prepared-statements: false max-pool-prepared-statement-per-connection-size: 20 devtools: restart: enabled: true exclude: WEB-INF/** #Mybatis mybatis: mapper-locations: classpath:mappers/*.xml type-aliases-package: configuration: mapUnderscoreToCamelCase: false pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql
    最新回复(0)