1、 2、 3、 4、 4、 5、 如果jsp中不配置拦截器,则会用struts-dtefaul.xml中的<default-interceptor-ref name="defaultStack"/>将会生效,如果jsp中配置了,则这个会失效,但是要需要显示引用一下,就会继续生效,如图4. 文件上传 ...
分类:
其他好文 时间:
2016-06-03 01:14:19
阅读次数:
208
1. Ioc 2. 依赖注入的三种方式:接口注入,set注入,构造注入(spring中 bean为后两种) 3. Bean:id和name的区别,singleton模式(默认) 4. Property中直接定义bean和引用bean(ref) 5. Property中null值得两种表示方法 6. ...
分类:
编程语言 时间:
2016-06-02 17:58:47
阅读次数:
197
1.<transaction id="WithdrawPre" template="pageLoaderTemplate"> <actions> <ref name="action">WithdrawAction</ref> </actions> <channels> <channel type=" ...
分类:
其他好文 时间:
2016-06-02 17:47:41
阅读次数:
289
public string usp_getpasswd (string passstr, ref string retpswd) { string retpswdNew = ""; SqlParameter[] Parms = { new SqlParameter("@passstr", SqlDb ...
分类:
其他好文 时间:
2016-06-01 19:28:07
阅读次数:
208
ref参数在传递前必须初始化 out参数在方法返回前必须赋值 int a = 1; int b; TestRef(ref a); TestOut(out b); Console.Read(); } static void TestRef(ref int value) { } static void ...
分类:
其他好文 时间:
2016-05-31 19:06:14
阅读次数:
130
Introduction to Machine Learning https://www.amazon.cn/Introduction-to-Machine-Learning-Alpaydin-Ethem/dp/0262028182/ref=sr_1_3?s=books&ie=UTF8&qid=14 ...
分类:
其他好文 时间:
2016-05-31 16:04:49
阅读次数:
180
在struts2中,我们可以利用struts2自带的token拦截器轻松实现防止表单重复提交功能! 1. 在相应的action配置中增加: <interceptor-ref name="token"></interceptor-ref> <result name="invalid.token">/e ...
分类:
其他好文 时间:
2016-05-29 23:03:10
阅读次数:
359
文档参考;http://python.usyiyi.cn/django_182/ref/templates/api.html 添加自定义上下文文件custom_processors.py 更在setting.py文件 可以在前端使用year_month_number和categories ...
分类:
其他好文 时间:
2016-05-29 18:11:40
阅读次数:
292
当调试或输出日志时,将函数调用树打印出来对于调试程序非常有帮助,在PHP中,可以调用debug_print_backtrace()函数输出调用数。注:在http://www.php.net/manual/en/ref.errorfunc.php有更多的错误和调试函数,可以根据不同情况调用。
分类:
Web程序 时间:
2016-05-28 23:28:31
阅读次数:
231
| ALL | 全表扫描 | index | 索引全扫描 | range | 索引范围扫描,常用语<,<=,>=,between等操作 | ref | 使用非唯一索引扫描或唯一索引前缀扫描,返回单条记录,常出现在关联查询中 | eq_ref | 类似ref,区别在于使用的是唯一索引,使用主键的关联查 ...
分类:
数据库 时间:
2016-05-27 16:13:51
阅读次数:
222