继承自 OncePerRequestFilter接口。获取用户的IP: request.getLocalAddr().toString();获取用户Session request.getSession().getAttribute("adminUser")ModelAndView view=new ...
分类:
编程语言 时间:
2015-03-30 18:38:29
阅读次数:
284
登陆成功后,返回登陆前的网址登陆前网站的cs的Page_Load方法中加入:protected void Page_Load(object sender, EventArgs e) { Session.Add("url", Request.Url.ToString()); ...
分类:
其他好文 时间:
2015-03-30 12:47:13
阅读次数:
110
// 读取文件的创建、修改、访问时间FileInfo fi = new FileInfo("C://test.txt");Console.WriteLine(fi.CreationTime.ToString());Console.WriteLine(fi.LastWriteTime.ToString...
public static string GetProfileImage(int userId, int width, int height) { return "~/profilepic.ashx?userid=" + userId.ToString() + "&w=" + width.ToS.....
分类:
Web程序 时间:
2015-03-28 10:05:16
阅读次数:
128
jTextArea1.append(jComboBox1.getSelectedItem().toString()+"的"+jTextField1.getText()+"您好!\n"+"您提交的个人信息如下\n"+"性别"+a+"\n喜欢的明星"+c+d+e+f+g+h+"\n"里面核心内容如上关于...
分类:
编程语言 时间:
2015-03-28 10:01:32
阅读次数:
347
1.app.config 3.persondao类namespace FirstSpringNetApp{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } ...
分类:
编程语言 时间:
2015-03-21 11:03:42
阅读次数:
169
1.persondao类namespace MyselfIoC{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } }}2.xml 工厂文件3.工厂ioc 构造函数实例化一个ioc...
分类:
其他好文 时间:
2015-03-21 11:03:30
阅读次数:
108
//判断是不是数组 console.log(Object.prototype.toString.apply([])==='[object Array]') //判断是不是函数 console.log(Object.prototype.toString.apply(function(){})==='[...
分类:
编程语言 时间:
2015-03-20 15:53:54
阅读次数:
165
publicinterfaceS{}publicinterfaceB{publicstaticfinalSs=newS(){publicStringtoString(){return"我在接口实现了";}publicvoiddoString(Strings){System.out.println("我在接口实现了");}};}publicclassTest{publicstaticvoidmain(String[]args){Strings=B.s.toString();Syste..
分类:
编程语言 时间:
2015-03-20 01:33:49
阅读次数:
154
比较下面两段代码的区别: @if (item.ModifyTime.HasValue) { @item.ModifyTime.GetValueOrDefault().ToString("yyyy-MM...
分类:
Web程序 时间:
2015-03-19 19:58:54
阅读次数:
272