上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页
摘要: 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 毛会懂 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 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 毛会懂 阅读(208) 评论(0) 推荐(0) 编辑
摘要: nexus是一种常见的maven私服软件。 网上介绍的都是nexus2的使用,下面是最新版nexus3的使用方式。 首先需要从官网下载nexus3的包,很卡。 下载好以后解压会有两个文件夹:nexus的和sonatype-work。前者是功能的实现,后者负责存储数据。 进入nexus的bin目录下: 阅读全文
posted @ 2018-10-30 17:21 毛会懂 阅读(318) 评论(0) 推荐(0) 编辑
摘要: ~/.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 毛会懂 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 天碰到了微服务响应超时问题,而且超时时间特别短,2秒就超时,zuul就走熔断了。 我采用zuul作为网关,根据不同的访问路径进行微服务的路由,譬如有个服务是user,我访问user服务的某个接口时,该接口执行时间很慢,2秒多,然后还没执行完,zuul就执行熔断了,进入了我配好的ZuulFallbac 阅读全文
posted @ 2018-10-29 16:43 毛会懂 阅读(807) 评论(0) 推荐(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 毛会懂 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 关于 eclipse启动卡死的问题(eclipse上一次没有正确关闭,导致启动的时候卡死错误解决方法),自己常用的解决方法: 方案一(推荐使用,如果没有这个文件,就使用方案二): 到<workspace>\.metadata\.plugins\org.eclipse.core.resources目录 阅读全文
posted @ 2018-10-27 10:37 毛会懂 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 由于客户端请求服务端方法时,服务端方法响应超过1秒将会触发降级,所以我们可以配置Hystrix默认的超时配置 如果我们没有配置默认的超时时间,Hystrix将取default_executionTimeoutInMilliseconds作为默认超时时间 1.代码中修改默认超时配置(改为3秒): 3. 阅读全文
posted @ 2018-10-26 18:33 毛会懂 阅读(2207) 评论(0) 推荐(0) 编辑
摘要: 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 毛会懂 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: 1.创建需要改成新名的数据库。2.mysqldum 导出要改名的数据库3.删除原来的旧库(确定是否真的需要)当然这种方法虽然安全,但是如果数据量大,会比较耗时,哎,当时连这种方法都没有想到,真有想死的冲动。 第二种方法: #!/bin/bash # 假设将sakila数据库名改为new 阅读全文
posted @ 2018-10-24 09:03 毛会懂 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页