本文转自:http://www.cnblogs.com/yjmyzz/archive/2010/08/29/1812038.html注:这篇文章主要给新手看的,老手们可能会觉得没啥营养,就请绕过吧。“认证”与“授权”是几乎所有系统中都会涉及的概念,通俗点讲:认证(authentication)
就是...
分类:
Web程序 时间:
2014-06-29 14:50:21
阅读次数:
351
安装setuptools的时候,不能再注册表中识别出来python2.7在网上找了方法,仅作笔记,供下次使用方法:新建一个register.py
文件,把一下代码贴进去,保存(G盘) 1 # 2 # script to register Python 2.0 or later for use wit...
分类:
编程语言 时间:
2014-06-29 14:45:14
阅读次数:
312
Given two wordsword1andword2, find the minimum
number of steps required to convertword1toword2. (each operation is counted as 1
step.)You have the fol...
分类:
其他好文 时间:
2014-06-04 20:12:15
阅读次数:
199
1.[Required] : 必须输入[Required(ErrorMessage =
"请输入用户名")] 2.[StringLength] : 限制字符串长度[StringLength(10, ErrorMessage =
"长度不能超过10个字符")] 3.[Range] : 限制取值范围.....
分类:
Web程序 时间:
2014-05-29 09:14:45
阅读次数:
352
在一个业务类有下列属性private SchedulerFactoryBeanscheduler;
public SchedulerFactory BeangetScheduler() { return scheduler; } public void
setS...
分类:
编程语言 时间:
2014-05-27 23:38:16
阅读次数:
1397
本文转自:http://www.codeproject.com/Articles/9348/Web-Service-AuthenticationDownload
source files - 45.5KBIntroductionThis is a simple mechanism to authen...
分类:
Web程序 时间:
2014-05-27 16:19:48
阅读次数:
473
Several ports(8080,8009)required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port, To start this server you will need to stop the other process or change t...
分类:
编程语言 时间:
2014-05-26 03:41:22
阅读次数:
364
PROPAGATION_REQUIRED PROPAGATION_REQUIRED
PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_R...
分类:
编程语言 时间:
2014-05-26 02:26:01
阅读次数:
317
安装Maven后每次启动出现警告信息:EclipseisrunninginaJRE,butaJDKisrequired.SomeMavenpluginsmaynotworkwhenimportingprojectsorupdatingsourcefolders.分两步解决问题:1.检查Eclipse正在使用的JRE‘Window’->‘Preferences’->‘Java’->‘InstalledJREs’确定正..
分类:
系统相关 时间:
2014-05-25 05:59:08
阅读次数:
313
manually set an authenticated user in Spring Security
在spring security手动 自定义 用户认证 SecurityContextHolder
//存放authentication到SecurityContextHolder
SecurityContextHolder.getContext().setAuthentication(authentication);
HttpSession session = request.getSession...
分类:
编程语言 时间:
2014-05-24 19:30:39
阅读次数:
4235