01 2018 档案

摘要:1) 重启后生效 开启: chkconfig iptables on 关闭: chkconfig iptables off 2) 即时生效,重启后失效 开启: service iptables start 关闭: service iptables stop 需要说明的是对于Linux下的其它服务都可 阅读全文
posted @ 2018-01-19 17:03 panda521 阅读(806) 评论(0) 推荐(0)
摘要:一般情况下iptables已经包含在Linux发行版中.运行 # iptables --version 来查看系统是否安装iptables 启动iptables:# service iptables start查看iptables规则集 # iptables --list下面是没有定义规划时ipta 阅读全文
posted @ 2018-01-19 17:01 panda521 阅读(15897) 评论(0) 推荐(0)
摘要:问题描述 意思是“无法结束的除法表达式;没有精确的除结果”。当时输入的10/3,结果应该是3.3333....333。 下面这种处理方式有问题。 BigDecimal num3 = new BigDecimal("10").divide( new BigDecimal("3")); devide的函 阅读全文
posted @ 2018-01-09 19:27 panda521 阅读(1425) 评论(0) 推荐(0)
摘要:什么是RestTemplate? RestTemplate是Spring提供的用于访问Rest服务的客户端,RestTemplate提供了多种便捷访问远程Http服务的方法,能够大大提高客户端的编写效率。调用RestTemplate的默认构造函数,RestTemplate对象在底层通过使用java. 阅读全文
posted @ 2018-01-09 19:22 panda521 阅读(8345) 评论(0) 推荐(0)
摘要:概述 RestTemplate是spring内置的http请求封装,在使用spring的情况下,http请求直接使用RestTemplate是不错的选择。 Rest服务端 使用RestTemplate发起http请求的时候,Rest服务提供者没有什么特殊要求,直接按照传统的SpringMVC的Con 阅读全文
posted @ 2018-01-09 08:59 panda521 阅读(23662) 评论(1) 推荐(1)
摘要:1.首先是编辑器的乱码,这个很好解决,file->settings->appearence里面有个Name设置成支持中文的字 体(这个很重要) 同样还要再settings中的Eidtor->File Encodings里面设置字体编码格式,一般都是UTF-8,GBK什么的也行。 2.找到idea安装 阅读全文
posted @ 2018-01-05 15:24 panda521 阅读(1152) 评论(0) 推荐(0)