简单区分下,他们在功能上是一致的:写在启动类的上,开启服务注册发现功能。 不同的是,当注册中心不一样时,像:eureka、consul、zookeeper,使用是也有了区别。 EnableDiscoveryClient注解在common包中,通过项目的classpath来决定使用哪种实现,而Enab ...
分类:
其他好文 时间:
2020-05-07 23:09:02
阅读次数:
85
错误描述: 服务间调用的时候 总是不通 feign.RetryableException: connect timed out executing POST http://common-service/supplywater/deviceManage/keyUnitData 原因、; 以zookee ...
分类:
编程语言 时间:
2020-05-07 15:34:16
阅读次数:
76
# 5.2 部署mysql **在目标服务器(192.168.0.1 192.168.0.3)app用户下执行** **1)mysql安装:** ```#建立mysql根目录mkdir -p /data/projects/fate/common/mysqlmkdir -p /data/project ...
分类:
数据库 时间:
2020-05-06 18:08:59
阅读次数:
95
1 package com.bawei.stream 2 3 import org.apache.kafka.clients.consumer.ConsumerRecord 4 import org.apache.kafka.common.serialization.StringDeserializ ...
分类:
其他好文 时间:
2020-05-05 17:51:00
阅读次数:
59
一,引入dll 1.ServiceStack.Common.dll 2.ServiceStack.Interfaces.dll 3.ServiceStack.Redis.dll 4.ServiceStack.Text.dll 二,修改配置文件 在你的配置文件中加入如下的代码: <appSetting ...
分类:
其他好文 时间:
2020-05-05 13:59:47
阅读次数:
52
1 from PIL import Image 2 import numpy as np 3 4 a = np.asarray(Image.open('D:\\python_common_exercise\\exercise\\taylor.jpg').convert('L')).astype('f ...
分类:
其他好文 时间:
2020-05-05 10:58:07
阅读次数:
68
Module 前端模块化 感谢 "七月的雨" 、 "lizhik" 、 "猿出道" 前端模块化从来都是前端人员关注的问题,首先出现的有Common.js方案(CMD)、require.js方案(AMD)等等,以及最后收场的ES6 Module Common.js common.js顺应了JavaSc ...
分类:
其他好文 时间:
2020-05-04 15:32:26
阅读次数:
45
#coding=gbkimport osimport timefrom selenium import webdriverfrom selenium.webdriver.common.by import By #导入by方法from selenium.webdriver.support.wait i ...
分类:
编程语言 时间:
2020-05-04 13:31:50
阅读次数:
91
封装如下: from selenium import webdriverfrom common.config_utils import configfrom selenium.webdriver.chrome.options import Optionsfrom selenium.webdriver ...
分类:
编程语言 时间:
2020-05-04 13:08:50
阅读次数:
157
一.Unicode 1. 选择Unicode方式,先下载至本地,然后复制.css文件和.ttf文件到项目目录src/common/font/.复制代码覆盖掉.css文件的@font face 2. 在APP.vue文件中引入css文件 3. 在组件内使用图标样式 4. 实际效果 ...
分类:
微信 时间:
2020-05-04 09:28:51
阅读次数:
368