03 2018 档案

摘要:java.net.UnknowHostException 调用 InetAdressImpl hostname:查看本机名称 若本机名称不是一个ip地址,则必须在 /etc/hosts中配置对应 ip 如 hotstname 127.0.0.1 否则 java.net.InetAddress.get 阅读全文
posted @ 2018-03-29 10:39 zfzf1 阅读(216) 评论(0) 推荐(0)
摘要:快捷方式防在 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 阅读全文
posted @ 2018-03-26 21:38 zfzf1 阅读(131) 评论(0) 推荐(0)
摘要:create index ix_ba_emp_code_re on t_base_employee(reverse(employee_code)); select * from t_base_employee t where t.employee_code like 'dss%' or revers 阅读全文
posted @ 2018-03-18 15:46 zfzf1 阅读(143) 评论(0) 推荐(0)
摘要:import java.util.LinkedList; import java.util.Queue; import java.util.Random; /** * Simple Java program to demonstrate How to use wait, notify and notifyAll() * method in Java by solving producer c... 阅读全文
posted @ 2018-03-15 07:51 zfzf1 阅读(232) 评论(0) 推荐(0)
摘要:http://localhost:9000/source/hello/dd 阅读全文
posted @ 2018-03-12 23:02 zfzf1 阅读(119) 评论(0) 推荐(0)
摘要:http://localhost:8082/hystrix http://localhost:8081/hystrix.stream 阅读全文
posted @ 2018-03-12 22:48 zfzf1 阅读(248) 评论(0) 推荐(0)
摘要:server: port: 8081 spring: application: name: spring-hy-sale feign: hystrix: enabled: true hystrix: command: HelloClient#toHello(): execution: isolation: t... 阅读全文
posted @ 2018-03-12 22:41 zfzf1 阅读(476) 评论(0) 推荐(0)
摘要:@Service public class CollService { @HystrixCollapser(batchMethod = "getMembers", collapserProperties = { //收集1秒内的请求 @HystrixProperty(name = "timerDelayInMilliseconds", value = "1000") }) p... 阅读全文
posted @ 2018-03-12 21:12 zfzf1 阅读(534) 评论(1) 推荐(0)
摘要:@SpringBootApplication @EnableEurekaClient @EnableCircuitBreaker @ServletComponentScan public class SaleApp { @Bean @LoadBalanced public RestTemplate getRestTemplate() { return new RestTemplat... 阅读全文
posted @ 2018-03-12 17:58 zfzf1 阅读(1352) 评论(0) 推荐(0)
摘要:@WebFilter(urlPatterns = "/*", filterName = "hystrixFilter") public class MyFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { } public void doFi... 阅读全文
posted @ 2018-03-12 17:56 zfzf1 阅读(140) 评论(0) 推荐(0)
摘要:@Service public class CacheService { @Autowired private RestTemplate restTpl; @CacheResult @HystrixCommand public Member cacheMember(Integer id) { System.out.println("调用 cacheMember 方法"); /... 阅读全文
posted @ 2018-03-12 17:54 zfzf1 阅读(332) 评论(0) 推荐(0)
摘要:org.springframework.cloud spring-cloud-dependencies Dalston.SR3 pom import org.springframework.cloud spring-cloud-starter-config org.springfra... 阅读全文
posted @ 2018-03-12 17:32 zfzf1 阅读(167) 评论(0) 推荐(0)
摘要:restserver feign client interface feign client 阅读全文
posted @ 2018-03-11 09:52 zfzf1 阅读(144) 评论(0) 推荐(0)
摘要:io.github.openfeign feign-core 9.5.0 io.github.openfeign feign-gson 9.5.0 @R... 阅读全文
posted @ 2018-03-10 15:44 zfzf1 阅读(121) 评论(0) 推荐(0)
摘要:org.apache.cxf cxf-core 3.1.10 org.apache.cxf cxf-rt-rs-client 3.1.10 publ... 阅读全文
posted @ 2018-03-10 15:41 zfzf1 阅读(133) 评论(0) 推荐(0)
摘要:provider consumer 阅读全文
posted @ 2018-03-10 15:00 zfzf1 阅读(333) 评论(0) 推荐(0)
摘要:IRule 配置 阅读全文
posted @ 2018-03-10 14:50 zfzf1 阅读(1004) 评论(0) 推荐(0)
摘要:配置说明 注意-转驼峰 english http://cloud.spring.io/spring-cloud-static/Dalston.SR2/#spring-cloud-feign china https://springcloud.cc/spring-cloud-dalston.html 阅读全文
posted @ 2018-03-10 09:38 zfzf1 阅读(521) 评论(0) 推荐(0)
摘要:datasource节点添加 以下 抛如下异常: 2016-12-27 14:35:22.773 [Druid-ConnectionPool-Destroy-1821010113] ERROR com.alibaba.druid.pool.DruidDataSource - abandon conn 阅读全文
posted @ 2018-03-06 09:10 zfzf1 阅读(9117) 评论(0) 推荐(0)
摘要:ServerResponse方式 测试 耗时 servlet方式 测试同上 结果 总结100W个线程的情况下 spring 5提供的 webFlux 相比 servlet模型 慢了17秒 阅读全文
posted @ 2018-03-05 09:41 zfzf1 阅读(1674) 评论(0) 推荐(0)
摘要:C:\0maven-repository nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public 阅读全文
posted @ 2018-03-04 15:38 zfzf1 阅读(1426) 评论(0) 推荐(0)
摘要:http://start.spring.io/ 阅读全文
posted @ 2018-03-04 15:22 zfzf1 阅读(76) 评论(0) 推荐(0)
摘要:进入docker 容器 exec -it f4 bash ls pwd which nginx ps -ef exit 阅读全文
posted @ 2018-03-04 10:48 zfzf1 阅读(98) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/zfzf1/p/7689614.html sed -i '1a nameserver 8.8.8.8' /etc/resolv.conf yum -y install docker 启动docker并设置为开机自启 docker images 阅读全文
posted @ 2018-03-03 23:14 zfzf1 阅读(90) 评论(0) 推荐(0)
摘要:执行 sed -i '1a nameserver 8.8.8.8' /etc/resolv.conf 阅读全文
posted @ 2018-03-03 22:48 zfzf1 阅读(88) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-03-03 22:34 zfzf1 阅读(114) 评论(0) 推荐(0)