spring cloud zuul
摘要:1. 依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> </pare
阅读全文
posted @
2018-10-31 09:47
毛会懂
阅读(131)
推荐(0) 编辑
spring cloud turbine
摘要:1. 依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> </pare
阅读全文
posted @
2018-10-31 09:38
毛会懂
阅读(121)
推荐(0) 编辑
spring coud feign
摘要:1. 依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> </pare
阅读全文
posted @
2018-10-31 09:36
毛会懂
阅读(131)
推荐(0) 编辑
spring cloud DashBoard
摘要:1 依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> </paren
阅读全文
posted @
2018-10-31 09:32
毛会懂
阅读(343)
推荐(0) 编辑
spring cloud 消费者
摘要:本消费者 加了 Hystrix, 为了后续监控用。 1. 依赖: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5
阅读全文
posted @
2018-10-31 09:26
毛会懂
阅读(137)
推荐(0) 编辑
spring cloud 服务提供者
摘要:1. pom 依赖: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> <
阅读全文
posted @
2018-10-31 09:21
毛会懂
阅读(136)
推荐(0) 编辑
spring cloud: eureka搭建
摘要:1. 添加pom 依赖: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version>
阅读全文
posted @
2018-10-31 09:06
毛会懂
阅读(209)
推荐(0) 编辑
通过maven 上传jar 到nexus3,cong nexus3下载jar
摘要:nexus是一种常见的maven私服软件。 网上介绍的都是nexus2的使用,下面是最新版nexus3的使用方式。 首先需要从官网下载nexus3的包,很卡。 下载好以后解压会有两个文件夹:nexus的和sonatype-work。前者是功能的实现,后者负责存储数据。 进入nexus的bin目录下:
阅读全文
posted @
2018-10-30 17:21
毛会懂
阅读(341)
推荐(0) 编辑
搭建turbine时 hystrix MaxConcurrentConnections reached 异常
摘要:~/.m2/repository/com/netflix/hystrix/hystrix-metrics-event-stream/1.5.6/hystrix-metrics-event-stream-1.5.6-sources.jar!/com/netflix/hystrix/contrib/re
阅读全文
posted @
2018-10-29 16:45
毛会懂
阅读(535)
推荐(0) 编辑
Zuul超时问题,微服务响应超时,zuul进行熔断
摘要:天碰到了微服务响应超时问题,而且超时时间特别短,2秒就超时,zuul就走熔断了。 我采用zuul作为网关,根据不同的访问路径进行微服务的路由,譬如有个服务是user,我访问user服务的某个接口时,该接口执行时间很慢,2秒多,然后还没执行完,zuul就执行熔断了,进入了我配好的ZuulFallbac
阅读全文
posted @
2018-10-29 16:43
毛会懂
阅读(821)
推荐(0) 编辑
微信公众号开发网址
摘要:微信企业付款: https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_1 服务号: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1445241432 开
阅读全文
posted @
2018-10-27 11:48
毛会懂
阅读(213)
推荐(0) 编辑
eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法
摘要:关于 eclipse启动卡死的问题(eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法),自己常用的解决方法: 方案一(推荐使用,如果没有这个文件,就使用方案二): 到<workspace>\.metadata\.plugins\org.eclipse.core.resources目录
阅读全文
posted @
2018-10-27 10:37
毛会懂
阅读(295)
推荐(0) 编辑
Hystrix-超时设置
摘要:由于客户端请求服务端方法时,服务端方法响应超过1秒将会触发降级,所以我们可以配置Hystrix默认的超时配置 如果我们没有配置默认的超时时间,Hystrix将取default_executionTimeoutInMilliseconds作为默认超时时间 1.代码中修改默认超时配置(改为3秒): 3.
阅读全文
posted @
2018-10-26 18:33
毛会懂
阅读(2241)
推荐(0) 编辑
搭建Turbine时,报错误:Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'
摘要:Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream 配置的时候遇到了问题: Property or field 'default' cannot be found on object of type 'co
阅读全文
posted @
2018-10-26 18:32
毛会懂
阅读(604)
推荐(0) 编辑
mysql改数据库名称
摘要:第一种方法: 1.创建需要改成新名的数据库。2.mysqldum 导出要改名的数据库3.删除原来的旧库(确定是否真的需要)当然这种方法虽然安全,但是如果数据量大,会比较耗时,哎,当时连这种方法都没有想到,真有想死的冲动。 第二种方法: #!/bin/bash # 假设将sakila数据库名改为new
阅读全文
posted @
2018-10-24 09:03
毛会懂
阅读(183)
推荐(0) 编辑
spring cloud eureka 配置
摘要:server: port: 8761 security: user: name: admin password: admin basic: enabled: trueeureka: instance: hostname: localhost server: #enable-self-preserva
阅读全文
posted @
2018-10-23 16:56
毛会懂
阅读(114)
推荐(0) 编辑
nginx 无法访问root权限的文件内容
摘要:问题: 按照的nginx,nginx配置的user 是 nginx,nginx 是root用户启动的。 文件夹A放的那啥是root用户上传的文件。 可 nginx 无法访问 到 文件。 方法: 将 普通用户添加到 root 用户组 usermod -G root nginx, 重启nginx。
阅读全文
posted @
2018-10-22 17:00
毛会懂
阅读(1253)
推荐(0) 编辑
Linux 如何将一个文件夹的所有内容授权给某一个用户
摘要:我们可以使用chown命令,ch这里代表change(改变)的意思,own代表英文单词的owner(拥有者),连在一起就是 change owner ,改变某个文件或者文件夹的拥有者。 一般只有root用户有使用这个命令的权限,也是经常会使用到的一个命令。问题来了!如果我要把一个文件夹及其所有子内容
阅读全文
posted @
2018-10-22 16:17
毛会懂
阅读(6866)
推荐(1) 编辑
eclipse 注释字体不一致的问题
摘要:eclipse中 1.解决注释的文字大小不一的情况 2.想让注释和代码大小不一样 3.win10系统下,设置Text Font时找不到Courier New字体 1.解决注释的文字大小不一的情况 打开eclipse软件,Window-Preference-General-Appearance-Col
阅读全文
posted @
2018-10-20 16:53
毛会懂
阅读(863)
推荐(0) 编辑
java web 跨域
摘要:服务器端解决跨域问题的三种方法 跨域是指html文件所在的服务器与ajax请求的服务器是不同的ip+port,例如: - ‘192.168.1.1:8080’ 与 ‘192.168.1.2:8080’是不同的域。 - ‘192.168.1.1:8080’ 与 ‘192.168.1.1:8081’是不
阅读全文
posted @
2018-10-17 09:22
毛会懂
阅读(257)
推荐(0) 编辑
tomcat的catalina.out日志文件过大
摘要:今天发现一个服务器的/opt目录数据过大,最后发现是tomcat中的catalina.out日志过大引起的 用du命令查看opt下一层的数据文件大小 [root@ccssapportalp opt]# du -h --max-depth=1 /opt 最终发现在tomcat里catalina.out
阅读全文
posted @
2018-10-16 11:12
毛会懂
阅读(2346)
推荐(0) 编辑
linux 安装禅道
摘要:1. 查看Linux服务器版本信息 # cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 2. 禅道开源版安装包下载 # wget http://dl.cnezsoft.com/zentao/9.8.2/ZenTaoPMS.9.
阅读全文
posted @
2018-10-07 15:15
毛会懂
阅读(2849)
推荐(0) 编辑
修改rabbitmq Web UI 监控页面的端口
摘要:在前几天工作中遇到一个问题,部署服务器,需要用rabbitmq自带的一个web UI监控组件,但是15672的端口没有对外映射。尝试了几种办法。开始修改rabbitmq.config,rabbitmq-ebv.config,总是不成功,因为修改的是rabbitmq-server的启动端口号,从外面访
阅读全文
posted @
2018-10-06 23:05
毛会懂
阅读(964)
推荐(0) 编辑