摘要:
面向对象设计原则: 开 开闭原则(Open-Closed Principle, OCP) 一个软件实体应当对扩展开发,对修改关闭.说的是,再设计一个模块的时候,应当使这个模块可以在不被修改的前提下被扩展.换言之,应当可以在不必修改源代码的情况下改变这个模块的行为,在保持系统一定稳定性的基础上,对系统 阅读全文
posted @ 2019-05-10 14:34
duniqb
阅读(109)
评论(0)
推荐(0)
摘要:
概述 crond 是Linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程,与Windows下的计划任务类似 该文件位于/etc/crontab 操作 命令作用 $service cron status 查看cron状态 $/etc/init.d/cron start 启动cron $ 阅读全文
posted @ 2019-05-10 14:30
duniqb
阅读(123)
评论(0)
推荐(0)
摘要:
解析URL和文件 public void testUrl() throws Exception { // 解析URL地址,参数是url和超时时间 Document doc = Jsoup.parse(new URL("http://www.baidu.com"), 1000); // 使用标签选择器 阅读全文
posted @ 2019-05-10 14:16
duniqb
阅读(301)
评论(0)
推荐(0)
摘要:
Get 不带参数的Get请求 // 创建httpClient对象,模拟客户端 CloseableHttpClient httpClient = HttpClients.createDefault(); // 创建httpGet对象,设置地址 HttpGet httpGet = new HttpGet 阅读全文
posted @ 2019-05-10 14:14
duniqb
阅读(178)
评论(0)
推荐(0)

浙公网安备 33010602011771号