work hard work smart

专注于Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 58 下一页

2016年10月12日

摘要: 如下面的Code,分别介绍了GET,POST,以及使用XMLHttpRequest的Get请求。 阅读全文

posted @ 2016-10-12 19:26 work hard work smart 阅读(381) 评论(0) 推荐(0) 编辑

摘要: Demo Test Get Test Post 阅读全文

posted @ 2016-10-12 14:06 work hard work smart 阅读(464) 评论(0) 推荐(0) 编辑

2016年10月10日

摘要: 一. 环境搭建 1. JDK更新 http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html 使用最新的JDK或者8u91版本 2.Android SDK Tools/Android SDK Tools 阅读全文

posted @ 2016-10-10 15:06 work hard work smart 阅读(166) 评论(0) 推荐(0) 编辑

2016年10月8日

摘要: -- 查看系统变量 show variables like '%general%'; set global general_log=on; 阅读全文

posted @ 2016-10-08 14:59 work hard work smart 阅读(199) 评论(0) 推荐(0) 编辑

2016年9月27日

摘要: PHP使用JSON通信 php中使用JSON的Code如下 输出的结果如下图 阅读全文

posted @ 2016-09-27 09:49 work hard work smart 阅读(344) 评论(0) 推荐(0) 编辑

2016年9月26日

摘要: PHPStorm 调式JS /同时调式PHP和jS 一、PHPStorm 调式Javascript 在PHP Storm中创建test.html 在test.html 文件中右键 选择Debug ‘test.html' . 此时Chorme浏览器会提示安装JetBrain IDE Support。选 阅读全文

posted @ 2016-09-26 18:54 work hard work smart 阅读(8167) 评论(0) 推荐(1) 编辑

摘要: PHP list,explode的使用 1.header("Content-type: text/html; charset=utf-8"); 解决中文乱码问题。 输出结果: explode 使用ZhangsanLisilist 使用ZhangsanLisiWangwu 阅读全文

posted @ 2016-09-26 14:29 work hard work smart 阅读(1641) 评论(0) 推荐(1) 编辑

摘要: "100","2"=>"200","3"=>"300"); foreach ($arr as $key=> $value){ echo "Key: ".$key." Value: ".$value."\n"; } 阅读全文

posted @ 2016-09-26 14:06 work hard work smart 阅读(290) 评论(0) 推荐(0) 编辑

摘要: PHP eof的使用 也就是heredoc技术,来部分实现界面与代码的分离 以<<<EOT开头, 以EOT;结尾, $name 为定义的变量。使用EOF比起一行一行 echo 如 ,显然EOF便于阅读。 阅读全文

posted @ 2016-09-26 11:49 work hard work smart 阅读(1593) 评论(0) 推荐(0) 编辑

2016年9月21日

摘要: 使用Spring缓存的简单Demo 1. 首先创建Maven工程,在Pom中配置 2. 创建Student类和StudentServer 类 StudentServer 注意:getStudent方法要定义为Public才能使用缓存。 有条件的缓存 condition = "#id < 2",表示只 阅读全文

posted @ 2016-09-21 19:45 work hard work smart 阅读(972) 评论(0) 推荐(1) 编辑

2016年9月8日

摘要: android源码的目录结构 【以下网络摘抄】 |-- Makefile ! l/ a5 n% S% @- `0 d# z# a$ P4 V3 o7 R|-- bionic (bionic C库) |-- bootable (启动引导相关代码) |-- build (存放系统编译规则及generic 阅读全文

posted @ 2016-09-08 17:53 work hard work smart 阅读(525) 评论(0) 推荐(0) 编辑

2016年8月29日

摘要: 1.安装Ubuntu上安装LAMP 2.安装过程中设置MySql密码 3.测试 创建index.php var/www/html/index.php index.php的内容为 重启apache, service apache2 restart 在浏览器中输入 或者localhost改为IP地址 5 阅读全文

posted @ 2016-08-29 18:13 work hard work smart 阅读(228) 评论(0) 推荐(0) 编辑

2016年8月25日

摘要: 网上找到的一个DEMO, SpringMVC利用AOP实现自定义注解记录日志 可能出现的servlet 错误: 运行出错,修改此行就OK了 <scope>provided</scope> 阅读全文

posted @ 2016-08-25 15:24 work hard work smart 阅读(258) 评论(0) 推荐(0) 编辑

摘要: 在Windows上更新了git 版本后,clone/pull时出现错误, unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1 解 阅读全文

posted @ 2016-08-25 15:08 work hard work smart 阅读(15277) 评论(0) 推荐(0) 编辑

2016年7月19日

摘要: 首先要配置tomcat,window--preference--server--Installed Runtimes, add--选择tomcat--next--选择tomcat的安装目录(根目录)--完成debug的话右键项目--debug as--debug on server,弹出对话框,选择 阅读全文

posted @ 2016-07-19 18:25 work hard work smart 阅读(162) 评论(0) 推荐(0) 编辑

2016年7月14日

摘要: 一、Redis 的安装 1.Redis 下载 Windows 版本下载:https://github.com/dmajkic/redis/downloads 2.解压到 C:\redis-2.4.5-win32-win64 3.启动Redis server 4. 启动Redis 客户端 redis- 阅读全文

posted @ 2016-07-14 20:12 work hard work smart 阅读(336) 评论(0) 推荐(0) 编辑

2016年6月22日

摘要: 使用Junit进行单元测试,首先引入Junit的jar,配置如下。 阅读全文

posted @ 2016-06-22 15:10 work hard work smart 阅读(243) 评论(0) 推荐(0) 编辑

2016年6月21日

摘要: 创建Bean时,class属性必须指定,此时为静态工厂类。 factory-method指定静态工厂方法名。 接口: Dog类 Cat类 Bean里配置 调用测试 输出结果 阅读全文

posted @ 2016-06-21 20:10 work hard work smart 阅读(637) 评论(0) 推荐(0) 编辑

2016年6月3日

摘要: 下面的解析的Json是一个二级循环。 阅读全文

posted @ 2016-06-03 12:30 work hard work smart 阅读(307) 评论(0) 推荐(0) 编辑

2016年6月1日

摘要: ApplicationContext的事件机制是观察者设计模式的实现,通过ApplicationEvent类和ApplicationListerner接口来实现。 1. 创建EmailEvent 2. 创建EmailNotifier类 3. 创建容器配置文件 beans_mail.xml 4. 测试 阅读全文

posted @ 2016-06-01 17:28 work hard work smart 阅读(424) 评论(0) 推荐(0) 编辑

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 58 下一页