You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.8 KiB
63 lines
1.8 KiB
server:
|
|
port: 8001 #服务端口
|
|
#eureka配置
|
|
eureka:
|
|
client:
|
|
#表示是否将自己注册进eureka 默认为true
|
|
register-with-eureka: true
|
|
#是否从EurekaServer中抓取已有的注册信息,默认为true,单点无所谓,集群必须设置true才能和ribbon使用负载均衡
|
|
fetch-registry: true
|
|
service-url:
|
|
#集群配置
|
|
defaultZone: http://eureka7002.com:7002/eureka
|
|
instance:
|
|
#服务名称修改
|
|
instance-id: PAYMENT-BASE
|
|
#访问路径可以显示ip地址
|
|
prefer-ip-address: true
|
|
#spring相关配置
|
|
spring:
|
|
application:
|
|
name: mcroservice-payment #服务名
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource #当前数据源操作类型
|
|
driver-class-name: org.gjt.mm.mysql.Driver #数据库驱动包
|
|
url: jdbc:mysql://106.14.81.251:3306/rbs_erp_test?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false
|
|
username: root
|
|
password: hnrr%%360
|
|
#rabbitmq 配置
|
|
rabbitmq:
|
|
host: localhost
|
|
port: 5672
|
|
username: rbs-payment
|
|
password: pay123123
|
|
# redis 配置
|
|
redis:
|
|
# 地址
|
|
host: 127.0.0.1
|
|
# 端口,默认为6379
|
|
port: 6379
|
|
# 密码
|
|
password: 123456
|
|
# 连接超时时间
|
|
timeout: 10s
|
|
lettuce:
|
|
pool:
|
|
# 连接池中的最小空闲连接
|
|
min-idle: 0
|
|
# 连接池中的最大空闲连接
|
|
# 连接池的最大数据库连接数
|
|
max-active: 8
|
|
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
max-wait: -1ms
|
|
#mybatis:配置
|
|
mybatis:
|
|
type-aliases-package: com.base.springcloud.dao #实体类包路径
|
|
mapper-locations: classpath*:com/base/payment/mapper/*.xml #mapper.xml路径
|
|
|
|
ftp:
|
|
ftp_ip: 192.168.71.132
|
|
ftp_prot : 21
|
|
ftp_username : wangying
|
|
ftp_password : 123456
|
|
ftp_basepath : /home/wangying
|