整合springBoot配置檔案部分application.properties(consumer部分不需要寫連線資料庫的配置檔案)
阿新 • • 發佈:2018-12-19
consumer
#dubbo spring.dubbo.appname=spring-boot-starter-dubbo-goods-consumer #spring.dubbo.registry=zookeeper://192.168.9.150:2181 spring.dubbo.registry=zookeeper://127.0.0.1:2181 spring.dubbo.protocol=dubbo server.port=8083 spring.activemq.broker-url=tcp://127.0.0.1:61616?jms.optimizeAcknowledge=true&jms.optimizeAcknowledgeTimeOut=30000&jms.redeliveryPolicy.maximumRedeliveries=10 spring.activemq.user=admin spring.activemq.password=admin spring.activemq.packages.trust-all=true #Redis資料庫索引(預設為0) spring.redis.database=0 #Redis伺服器地址 spring.redis.host=127.0.0.1 #Redis伺服器連線埠 spring.redis.port=6379 #Redis伺服器連線密碼(預設為空) #spring.redis.user=root #spring.redis.password=123456 #連線池最大連線數(使用負值表示沒有限制) spring.redis.pool.max-active=8 #連線池最大阻塞等待時間(使用負值表示沒有限制) spring.redis.pool.max-wait=-1 #連線池中的最大空閒連線 spring.redis.pool.max-idle=8 #連線池中的最小空閒連線 spring.redis.pool.min-idle=0 #連線超時時間(毫秒) spring.redis.timeout=3000
provider
spring.datasource.url=jdbc:mysql://172.13.31.57:3306/qg_goods_db?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=com.mysql.jdbc.Driver mybatis.mapper-locations=classpath:mapper/*Mapper.xml spring.dubbo.appname=spring-boot-starter-dubbo-goods-provider #spring.dubbo.registry=zookeeper://192.168.9.150:2181 spring.dubbo.registry=zookeeper://127.0.0.1:2181 spring.dubbo.protocol=dubbo spring.dubbo.port=20803 server.port=8093 spring.activemq.broker-url=tcp://127.0.0.1:61616?jms.optimizeAcknowledge=true&jms.optimizeAcknowledgeTimeOut=30000&jms.redeliveryPolicy.maximumRedeliveries=10 spring.activemq.user=admin spring.activemq.password=admin spring.activemq.packages.trust-all=true #Redis資料庫索引(預設為0) spring.redis.database=0 #Redis伺服器地址 spring.redis.host=127.0.0.1 #Redis伺服器連線埠 spring.redis.port=6379 #Redis伺服器連線密碼(預設為空) #spring.redis.user=root #spring.redis.password=123456 #連線池最大連線數(使用負值表示沒有限制) spring.redis.pool.max-active=8 #連線池最大阻塞等待時間(使用負值表示沒有限制) spring.redis.pool.max-wait=-1 #連線池中的最大空閒連線 spring.redis.pool.max-idle=8 #連線池中的最小空閒連線 spring.redis.pool.min-idle=0 #連線超時時間(毫秒) spring.redis.timeout=3000