日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

springboot_yml配置

發布時間:2023/12/19 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 springboot_yml配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

server:
? port: 8097
? session-timeout: 30
? tomcat.max-threads: 0
? tomcat.uri-encoding: UTF-8 ?
spring:
??? application:
????? name: feedback
??? # 數據庫配置
??? datasource:
??????? name: test
??????? #url: jdbc:mysql://192.168.0.180:3306/dsdb
??????? #url: jdbc:mysql://10.168.4.19:3306/dsdb
??????? url: jdbc:mysql://10.168.31.223:3306/dsdb?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&autoReconnect=true
??????? username: root
??????? password: ds2017
??????? # 使用druid數據源
??????? type: com.alibaba.druid.pool.DruidDataSource
??????? driver-class-name: com.mysql.jdbc.Driver
??????? filters: stat
??????? maxActive: 20
??????? initialSize: 1
??????? maxWait: 60000
??????? minIdle: 1
??????? timeBetweenEvictionRunsMillis: 60000
??????? minEvictableIdleTimeMillis: 300000
??????? validationQuery: select 'x'
??????? testWhileIdle: true
??????? testOnBorrow: false
??????? testOnReturn: false
??????? poolPreparedStatements: true
??????? maxOpenPreparedStatements: 20
??? # rabbitMq 配置
??? rabbitmq:
??????? host: 10.168.31.223
??????? port: 5672
??????? username: guest
??????? password: guest
?????? # publisher-confirms: true
?? # cache 配置
??? cache:
?????? jcache:
???????? config:
?????????? classpath:ehcache.xml
?? # redis 配置
??? redis:
???? #host: 192.168.0.129
???? #host: 10.168.4.19
???? host: 10.168.31.222
???? port: 6379
???? pool:
????? max-idle: 100
????? min-idle: 1
????? max-active: 1000
????? max-wait: -1
# jmx 配置
???? jmx:
?????? enabled: false

# mybatis 配置?????? ?
mybatis:
??? mapperLocations: classpath*:mapper/*.xml
??? typeAliasesPackage: com.daoshu.**.mapper
?? ?
pagehelper:
??? helperDialect: mysql
??? reasonable: false
??? supportMethodsArguments: true
# fdfs 配置

fdfs:
? soTimeout: 1500
? connectTimeout: 600
? thumbImage:???????????? #縮略圖生成參數
??? width: 150
??? height: 150
? trackerList:??????????? #TrackerList參數,支持多個
??? - 10.168.31.223:22122

# elasticsearch index和type配置
pvd:
? base:
??? es-server-config:
????? clusterName: elasticsearch
????? clusterNodeList :
?????? - http://10.168.31.223:9200
????? topicIndexName: knife
????? topicIndextype: topic
???? ?
eureka:
? instance:
??? prefer-ip-address: true
??? status-page-url: http://10.168.31.146:${server.port}/swagger-ui.html
? client:
???? service-url:
????? defaultZone: http://daoshu:ds2017@10.168.31.222:10000/eureka
???? ?
hystrix:
? command:
??? default:
????? execution:
??????? isolation:
????????? thread:
??????????? timeoutInMilliseconds: 60000
ribbon:
? ConnectTimeout: 3000
? ReadTimeout: 50000
? MaxAutoRetries: 1
? MaxAutoRetriesNextServer: 2
? OkToRetryOnAllOperations: false

轉載于:https://www.cnblogs.com/bky-mc/p/9766540.html

總結

以上是生活随笔為你收集整理的springboot_yml配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。