一、题外话接续上一篇:MVC中Action参数绑定的过程 public IModelBinder DefaultBinder{ get { if (this._defaultBinder == null) { this._defaultB...
分类:
Web程序 时间:
2014-07-07 13:52:52
阅读次数:
188
回到目录文章出现的原因很久没写关于MVC的文章了,原因是将关注点移向了MVVM和DDD这边,而这篇文章完全是因为公司项目的需要,因为公司网站总是不定时的502,而这由可能是程序超时所引起的,为了分析出现问题的点,所以,对action进行了监控,这个监控功能我选择了在global里注入全局的filte...
分类:
Web程序 时间:
2014-07-01 22:54:04
阅读次数:
249
1, 添加手势self.longPressRecognizer = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(handleLongPress:)];[btn addGestureRecogniz...
分类:
其他好文 时间:
2014-06-30 21:13:14
阅读次数:
251
Spring AOP操作action时无法注入,报NullPointer异常当使用Spring AOP对action层进行操作时,会出现注入失败的问题,出现空指针异常。原因是一般struts2+spring应用中,spring的插件只负责为action的ioc部分,但并没有进行功能加强,即采用代理的...
分类:
编程语言 时间:
2014-06-30 20:56:46
阅读次数:
283
转自:http://www.cnblogs.com/wangyuyu/archive/2013/07/02/3167354.html一、理解Struts2拦截器1. Struts2拦截器是在访问某个Action或Action的某个方法,字段之前或之后实施拦截,并且Struts2拦截器是可插拔的,拦截...
分类:
编程语言 时间:
2014-06-30 20:39:11
阅读次数:
242
An Intent is a messaging object you
can use to request an action from another app component. Although intents facilitate communication
between components in several ways, there are three fundament...
分类:
其他好文 时间:
2014-06-30 19:28:20
阅读次数:
225
例如:常常在Action中都需要获取当前登录的User,就需要获取Session,然后从Session获取当前登录的User,因为这些步骤都是重复操作,可以想办法在拦截器中进行实现,可以自定义一个接口,只要你的Action实现了这个接口,就在自定义拦截器中进行注入。即从拦截器中获取Session,然后设置进行注入。
简单的例子:
一个自定义接口,只要Action实现这个接口,就在拦截器...
分类:
其他好文 时间:
2014-06-30 18:09:20
阅读次数:
188
之前在用ssh整合json时一直发现前台获取不到json的返回数据,直接运行action出现以下错误:
HTTP Status 500 - org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apac...
分类:
数据库 时间:
2014-06-30 17:17:02
阅读次数:
351
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1480#include #include int n;#define N 100001 //N的值取比哈希表长度略大的(质数)int a[100001],....
分类:
其他好文 时间:
2014-06-30 15:07:41
阅读次数:
145
小知识点总结1.android中MotionEvent.ACTION_CANCEL事件如何被触发?对于这个问题,android文档的说明很简短,想看明白很难。国外一网页说的还比较详细,写在这里分享给大家:原文是这样的:You receive this when a parent takes poss...
分类:
移动开发 时间:
2014-06-30 14:50:17
阅读次数:
205