- 博客(15)
- 资源 (3)
- 收藏
- 关注
原创 设置jcrop为永久选中
设置allowSelect: false即可。参考https://github.com/tapmodo/Jcrop/issues/5#issuecomment-1801926
2012-07-30 16:07:18 610
原创 jquery在eclipse工程中错误显示的解决
错误显示是eclipse不认识jquery语法,关闭掉validation即可,但最好是只关掉jquery相关的文件,其它js的验证还要存在,参考下面:https://bugs.eclipse.org/bugs/show_bug.cgi?id=349020#c11按comment 15做就可以了:I have found that I can leave the JavaScrip
2012-07-27 09:31:46 1402
原创 spring mobile site preference管理
http://static.springsource.org/spring-mobile/docs/1.0.0.M3/reference/html/device.html参考2.4.2节,下面是我运行成功的配置:
2012-07-24 16:50:39 1270
原创 swfupload缩略图流程
1:首先查看是否有效文件2:imagecreatefromjpeg创建一图像3:获取图像的宽度和高度4:创建缩略图 4.1目标宽度和高度都设为100像素 4.2目标比率 = 目标宽度/目标高度,这里等于1 4.3刚才创建的图像比率 = 图像宽度 / 图像高度 4.4计算新宽度和新高度,等比例缩放,最后要考虑溢出情况,如果超过指定长度和宽度,要等于
2012-07-17 15:34:12 1350
原创 Spring Security + SWFUpload and the session problem
准备使用swfupload做为文件上传工具,不过看起来有些问题,先记下来:http://grails.1312388.n4.nabble.com/Spring-Security-SWFUpload-and-the-session-problem-td3964747.html#a4096620这个地址里边提到的解决方案不能直接访问,可以通过http://www.8qi8.com/访问
2012-07-14 17:19:33 915
原创 使用spring 3.1和javamail发送邮件
1:首先添加pom依赖: javax.mail mail 1.4 2:配置文件 smtp.163.com 25 youraccount@163.com yourpassword
2012-07-14 14:40:08 1335
原创 spring security加密密码修改
貌似现在的框架有点问题,验证的时候用的是明文,但新密码却要使用加密后密码,否则在数据库存储中就是明文密码,只好按以下方式修改密码了,也许什么地方我没搞对: @RequestMapping(value = "/account/changePassword", method = RequestMethod.POST) public String submitChangePasswo
2012-07-09 17:49:22 5231
原创 spring security前进后退失效处理
在controller里边这么处理一下就可以了: public ModelAndView login(Locale locale, Model model, SecurityContextHolderAwareRequestWrapper request , final HttpServletResponse response) { resp
2012-07-09 11:55:06 1132
原创 使用spring security修改密码例子
@RequestMapping(value = "/account/changePassword", method = RequestMethod.POST) public String submitChangePasswordPage( @RequestParam("oldpassword") String oldPassword,
2012-07-06 15:24:43 6058
转载 Spring Security redirecting to "/favicon.ico"
http://blog.idm.fr/2010/09/spring-security-redirecting-to-faviconico.html
2012-07-03 22:08:10 2223
转载 Spring Security 3.1 中功能强大的加密工具 PasswordEncoder
http://www.iteye.com/topic/1120844收藏,学习!
2012-07-03 16:51:21 725
原创 spring权限控制配置一例
xmlns:s="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springfra
2012-07-03 11:56:15 1990
原创 spring security Controller用户角色的判断
上代码: @RequestMapping(value = "/login", method = RequestMethod.GET) public ModelAndView login(Locale locale, Model model, SecurityContextHolderAwareRequestWrapper request) { if( req
2012-07-03 11:17:17 3831
原创 SecurityContextHolder.getContext().getAuthentication()为空的解决
昨天在公司测试spring security,在controller里边发现SecurityContextHolder.getContext().getAuthentication()始终为null,百思不得其解,google上查半天也没解决,这样那样的说法都有,回家后继续google,结果有一阵不知搜什么词语了不让继续访问了,只好用百度,别说真找到答案了,头一次百度在技术搜索战胜了google,
2012-07-03 09:27:58 37283 2
原创 spring security 3.1注册后自动登录
网上搜索一大圈,最后发现http://www.ke-cai.net/2010/11/auto-login-after-successful.html里讲述的是最接近答案的,但一测试,发现验证是通过了,session却没有保存,接着再搜,发现了一篇文章说到了这个问题,http://stackoverflow.com/questions/5428654/spring-security-auto-log
2012-07-02 16:18:06 7402 1
A New Method for Symmetric NAT Traversal in UDP and TCP
2012-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人