最近觉得写的一点代码(JAVA),还觉得颇为自得,贡献出来供大家参考。首先,先上代码:@Controllerpublic class Controller1{ @WriteLog(value = "${p0.username}从${ctx.ip}登录, 登录${iif(ret.suc...
分类:
编程语言 时间:
2014-07-07 17:10:44
阅读次数:
236
Problem Description:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.ge...
分类:
其他好文 时间:
2014-07-07 16:41:12
阅读次数:
237
Spring 能有效地组织J2EE应用各层的对象。无论是控制层的Action对象,还是业务层的Service对象,还是持久层的DAO对象,都可在Spring的 管理下有机地协调、执行。Spring将各层的对象以松耦合的方式组织在一起,Action对象无须关心Service对象的详细实现,Servic...
分类:
其他好文 时间:
2014-07-07 16:35:49
阅读次数:
226
首先,SSH不是一个框架,而是多个框架(struts+spring+hibernate)的集成,是眼下较流行的一种Web应用程序开源集成框架,用于构建灵活、易于扩展的多层Web应用程序。集成SSH框架的系统从职责上分为四层:表示层、业务逻辑层、数据持久层和域模块层(实体层)。Struts作为系统的总...
分类:
其他好文 时间:
2014-06-30 14:36:00
阅读次数:
182
数据项中引入模型/视图架构,可以方便的将数据与表现层分开。
-------------------------------------
为每个视图都提供了一个默认的委托——可以使用自定义的委托来替换显示没一项,并为可编辑项提供一个合适的编辑器。
-------------------------------------
模型:用于存储数据项(data item)。
纯粹的视图部件:Q...
分类:
其他好文 时间:
2014-06-30 09:39:25
阅读次数:
1128
hibernate4无法保存数据,getCurrentSession无法保存数据,spring事务影响hibernate4保存数据...
分类:
系统相关 时间:
2014-06-30 09:11:42
阅读次数:
386
上面一篇写的是配置式的控制器现在已经不推荐使用了,其实注解式控制器和它的差不多只不过
更简洁而已!
1.还是在web.xml中进行配置DispatcherServlet
spring
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
/WEB-INF/class...
分类:
编程语言 时间:
2014-06-30 07:38:15
阅读次数:
177
我用的方案是:maven+struts2+spring+mybatis
出现上述错误的原因是:
org.mybatis
mybatis
3.0.1
org.mybatis
mybatis-spring
...
分类:
移动开发 时间:
2014-06-30 06:03:55
阅读次数:
302
// Private Data Storage
pm.addIQProvider("query", "jabber:iq:private",new PrivateDataManager.PrivateDataIQProvider());
// Time
try {
pm.addIQProvider("query", "jabber:iq:time",Class.forName(...
分类:
移动开发 时间:
2014-06-30 00:41:31
阅读次数:
310
【题目】
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
se...
分类:
其他好文 时间:
2014-06-29 22:45:26
阅读次数:
358