会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
StevenLuke
博客园
首页
新随笔
联系
订阅
管理
2017年5月28日
阿里云建博客笔记
摘要: 1)、数据库 使用 sh catalina.sh run可以看到tomcat的运行信息,而不是使用sh startup.sh。 2)、centos DES的加解密方法里,SecureRandom 实现完全隨操作系统本身的內部狀態,除非調用方在調用 getInstance 方法之後又 調用了 setS
阅读全文
posted @ 2017-05-28 14:25 StevenLuke
阅读(138)
评论(0)
推荐(0)
2017年5月20日
org.springframework.web.servlet.pageNotFound
摘要: method POST is not supported. 俩天,不知道哪里出错了,今天才知道是html/jsp里的input标签里的name属性和后台的参数名称不一样造成的。做web开发,不知道怎么调试是个问题啊。
阅读全文
posted @ 2017-05-20 13:54 StevenLuke
阅读(214)
评论(0)
推荐(0)
2017年5月18日
我为什么来博客园写博客了
摘要: 虽然我的博客也没有人看,在csdn也只是近两万的浏览量...... csdn现在登录要绑定手机号了,这个我不能接受,所以我搬到博客园了,等我的个人博客写好以后,我就不在这里写博客了。
阅读全文
posted @ 2017-05-18 20:48 StevenLuke
阅读(105)
评论(0)
推荐(0)
springmvc的multipartResolver上传文件名乱码
摘要: html 设置页面的编码方式 <meta charset="UTF-8"> <!-- for HTML5 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ZC: 注意:源码文件(?.html 等),需
阅读全文
posted @ 2017-05-18 20:46 StevenLuke
阅读(384)
评论(0)
推荐(0)
2017年5月4日
二叉树的inorder实现:递归、栈、Morris遍历
摘要: 不包含null值检查等robust代码。递归:inorderTreeWalk(TreeNode root) { if(root != null) { inorderTreeWalk(root.left); System.out.println(ro...
阅读全文
posted @ 2017-05-04 14:21 StevenLuke
阅读(168)
评论(0)
推荐(0)
2017年4月27日
Java:关于负数的向上转型
摘要: int的负数n向上转型为long时,应该写成-(long)n,而不是(long)-n。 举例:int n = Integer.MIN_VALUE;//-2147483648System.out.println(-(long)n);//2147483648System.out.pri...
阅读全文
posted @ 2017-04-27 14:32 StevenLuke
阅读(132)
评论(0)
推荐(0)
2017年4月22日
bfs和dfs:poj2386和leetcode130
摘要: poj2386 如果发现一个’W’则使用dfs递归将与其相连的’W’都改为’.’,每遇到一个’W’(亦即调用一次dfs)将ans加一(发现一个水坑)。#include using namespace std;const int MAX_NM = 105;char ch[MAX_NM...
阅读全文
posted @ 2017-04-22 14:54 StevenLuke
阅读(214)
评论(0)
推荐(0)
2017年4月11日
为什么InnoDB表要建议用自增列做主键而MyISAM不需要
摘要: 我们先了解下InnoDB引擎表的一些关键特征:InnoDB引擎表是基于B+树的索引组织表(IOT); 每个表都需要有一个聚集索引(clustered index);所有的行记录都存储在B+树的叶子节点(leaf pages of the tree); 基于聚集索引的增、删、改、查的...
阅读全文
posted @ 2017-04-11 20:06 StevenLuke
阅读(297)
评论(0)
推荐(0)
2017年4月10日
kmp算法及解释
摘要: KMP算法属于单模式字符串匹配算法。我通过看书和看网上的博客,做笔记于此。 先做一个形象的解释(http://kb.cnblogs.com/page/176818/): 这种算法不太容易理解,网上有很多解释,但读起来都很费劲。直到读到Jake Boxer的文章,我才真正理解...
阅读全文
posted @ 2017-04-10 12:04 StevenLuke
阅读(162)
评论(0)
推荐(0)
2017年4月9日
JAVA中方法和变量在继承中的覆盖和隐藏
摘要: 转自:http://www.cnblogs.com/linth/p/3641175.html假设Class A是Class B的子类,并且A改写了B的方法的method(),那么B来说,method方法的指针指向B的method方法入口;对于A来说,A的方法表的method项指向自...
阅读全文
posted @ 2017-04-09 20:51 StevenLuke
阅读(128)
评论(0)
推荐(0)
下一页
公告