会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
古道西风
博客园
首页
新随笔
联系
订阅
管理
2016年3月30日
获取明天
摘要: Date date=new Date();//取时间 Calendar calendar = new GregorianCalendar(); calendar.setTime(date); calendar.add(calendar.DATE,1);//把日期往后增加一天.整数往后推,负数往前移动
阅读全文
posted @ 2016-03-30 14:31 坏气
阅读(151)
评论(0)
推荐(0)
2016年3月17日
开启elastic search 脚本
摘要: 在最新版本的Elasticsearch中,基于安全考虑(如果用不到,请保持禁用),默认禁用了动态脚本功能.如果被禁用,在使用脚本的时候则报以下的错误: scripts of type [inline], operation [update] and lang [groovy] are disable
阅读全文
posted @ 2016-03-17 18:22 坏气
阅读(335)
评论(0)
推荐(0)
2015年7月8日
ajax跨域和anglarjs跨域
摘要: $.ajax({ type: "POST", url: "http://server/person/test", data: {}, dataType: "jsonp", jsonpCallback:"abcd", ...
阅读全文
posted @ 2015-07-08 11:17 坏气
阅读(161)
评论(0)
推荐(0)
2015年7月6日
html5 java多图片上传
摘要: private List uploadImgs(HttpServletRequest req,String name) throws Exception{ List list = new ArrayList(); MultipartHttpServ...
阅读全文
posted @ 2015-07-06 10:10 坏气
阅读(632)
评论(0)
推荐(0)
2015年7月2日
ajax post form表单
摘要: $.ajax({ cache: true, type: "POST", url:"url", data:$('#formid').serialize(),// 你的formid ...
阅读全文
posted @ 2015-07-02 10:24 坏气
阅读(610)
评论(0)
推荐(0)
2015年6月17日
java获取图片文件返回地址
摘要: private String uploadFile(HttpServletRequest req,String file_name){ try { MultipartHttpServletRequest multipartRequest = (MultipartH...
阅读全文
posted @ 2015-06-17 10:01 坏气
阅读(1827)
评论(0)
推荐(0)
2015年5月15日
教你使用servlet拦截器,放行不需要拦截的内容
摘要: 一般来说什么权限,日志问题都需要拦截器,servlet原生态拦截器肯定是没有框架中的拦截器好用的,特别是排除放行的内容,是不好用的,下面举个例子说明package filter;import java.io.IOException;import javax.servlet.Filter;import...
阅读全文
posted @ 2015-05-15 15:54 坏气
阅读(9146)
评论(0)
推荐(0)
2014年11月24日
实用的request接收值的工具类
摘要: 1 2 import java.io.UnsupportedEncodingException; 3 4 import javax.servlet.http.HttpServletRequest; 5 6 7 public class ParamUtil { 8 ...
阅读全文
posted @ 2014-11-24 10:44 坏气
阅读(262)
评论(0)
推荐(1)
post接口
该文被密码保护。
阅读全文
posted @ 2014-11-24 10:35 坏气
阅读(5)
评论(0)
推荐(1)
spring3的定时执行任务
摘要: 一个配置文件+一个类搞定:1.配置文件,一个标签,ref代表执行的类,method是方法,cron="0 0/2 * * * ?"每两分钟执行一次,延迟0秒 1 2 14 15 16 17 18 java类 1 import org.apache.lo...
阅读全文
posted @ 2014-11-24 10:29 坏气
阅读(237)
评论(1)
推荐(1)
公告