04 2017 档案

摘要:php.ini放在--with-config-file-path设置路径下lib文件夹中才找的到!!!! fpm的配置文件需要放在这个位置/usr/local/etc/php-fpm.conf,暂时不知道咋改; http://blog.csdn.net/xiaog351/article/details/47421969 php: { cd /opt/apps wget http://cn2... 阅读全文
posted @ 2017-04-28 00:33 鹰搏长空08 阅读(2127) 评论(0) 推荐(0) 编辑
摘要:PS:propertisUtil自己写一个吧 阅读全文
posted @ 2017-04-27 00:11 鹰搏长空08 阅读(191) 评论(0) 推荐(0) 编辑
摘要:开发合并分支,推送到远程1. git diff 查看修改内容; 2. git add -A 添加所有修改; 3. git commit -am "给人的提示"; 提交修改内容 4. git push origin 你的分支名字; 5. git checkout test;切换到其它分支; 6. git merge --no-ff pri_zk;把你的分支内容合并到当前分支上; 7. git ... 阅读全文
posted @ 2017-04-25 23:33 鹰搏长空08 阅读(101) 评论(0) 推荐(0) 编辑
摘要:package com.wdm.utils; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.U... 阅读全文
posted @ 2017-04-24 21:35 鹰搏长空08 阅读(638) 评论(0) 推荐(0) 编辑
摘要:Problem Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given num = 5, return false. Follow up: Could you solve it w... 阅读全文
posted @ 2017-04-24 00:23 鹰搏长空08 阅读(159) 评论(0) 推荐(0) 编辑
摘要:心情还是有问题,保持每日更新,只能如此了。 PS:存货快用完了。。。。 阅读全文
posted @ 2017-04-22 22:08 鹰搏长空08 阅读(121) 评论(0) 推荐(0) 编辑
摘要:本来打算写redis的,时间上有点没顾过来,只能是又拿出点自己的存货了。 阅读全文
posted @ 2017-04-21 22:25 鹰搏长空08 阅读(121) 评论(0) 推荐(0) 编辑
摘要:上代码: 路由,即实现多数据库的切换源 注解,即用以标识选择主还是从数据库 常规配置项,具体主从继承并通过 @ConfigurationProperties(prefix = "master.datasource") 进行配置读取 多数据源设置 当然少不了DataSourceContextHolde 阅读全文
posted @ 2017-04-20 23:03 鹰搏长空08 阅读(4567) 评论(0) 推荐(0) 编辑
摘要:Problem Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop / recursion? Code 阅读全文
posted @ 2017-04-19 23:49 鹰搏长空08 阅读(154) 评论(0) 推荐(0) 编辑
摘要:先贴上一段参数设置 很多时候,将代码部署到服务器,都会对JAVA_OPTS进行一些操作,大多数情况对主要两个知道是干嘛的,其实的哪copy的算哪的。 所以,看了点资料,想写点东西。 Java虚拟机运行时数据区,主要包括以下部分:方法区、堆,它们是线程共用的部分;虚拟机栈、本地方法栈、程序计数器。下面 阅读全文
posted @ 2017-04-19 00:05 鹰搏长空08 阅读(430) 评论(0) 推荐(0) 编辑
摘要:首先,贴上nginx work的配置 server{ listen 8099; server_name wdm.test.cn; location / { // 没有配置OPTIONS的话,浏览器如果是自动识别协议(http or https),那么浏览器的自动OPTIONS请求会返回不能跨域 if 阅读全文
posted @ 2017-04-17 23:44 鹰搏长空08 阅读(20258) 评论(2) 推荐(2) 编辑
摘要:/** * Created by yongduan on 2017/1/8. */ public interface UserRepository extends JpaRepository<User, Integer> { // 通过年龄查询 // 方法名要按规矩写 public List<Use 阅读全文
posted @ 2017-04-16 22:14 鹰搏长空08 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1. 在eclipse中New选择maven项目,并选择web类型这个百度一下到处有; 2. 写简单的controller示例; 3. 配置web.xml,主要是DispatcherServlet; <servlet> <servlet-name>spring</servlet-name> <ser 阅读全文
posted @ 2017-04-15 20:56 鹰搏长空08 阅读(182) 评论(0) 推荐(0) 编辑
摘要:Problem: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 阅读全文
posted @ 2017-04-15 01:10 鹰搏长空08 阅读(288) 评论(0) 推荐(0) 编辑
摘要:单例模式,作为一种常用,且在很多框架中非常常用的模式,比如springMVC中默认的就是用单例。 今天就来讲讲单例模式都有哪些,以及有何区别,有何优点缺点。 1. 饿汉模式,顾名思议,即是提前把这个单例给好了。优:线程安全;缺:初始加载,不管有用没有; 2. 懒加载,分好几种。是不是该加点代码的,最 阅读全文
posted @ 2017-04-14 01:10 鹰搏长空08 阅读(108) 评论(0) 推荐(0) 编辑
摘要:spring-cache支持将现有缓存服务器配置为基于注解的缓存,本人所用过的就是作数据层缓存; 首先,说一个踩过的坑: 不同环境的切换,将会导致每个环境的spring-cache的结果不同,从而数据不一致,其实这个表面看起来大家 都明白,但是出现坑的原因是在于预上线环境的存在,如果预上线和线上的缓 阅读全文
posted @ 2017-04-13 01:14 鹰搏长空08 阅读(556) 评论(0) 推荐(0) 编辑
摘要:决定从今天开始写技术blog,不过并没有好好准备,只得从自己笔记中抽出来了。 1.查询key a. 所有key: keys *; b. 包含特定内容的key: test:-:test; 2. 删除key a. del key b. 用命令redis-cli -p 6381 keys te*:t | 阅读全文
posted @ 2017-04-12 00:52 鹰搏长空08 阅读(239) 评论(0) 推荐(0) 编辑