本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - Anmin
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- 青否云后端云
- kaizi1992
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- lemonhandsome
- jh108020
- ganxueyun
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- ajinn
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- lerf
- silverend
- xiaoxinye
- chenqisdfx
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
spring mvc 拦截器
拦截器配置:
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<bean class="cn.com.xxx.interceptor.UserAuthInterceptor ...
@Component,@Service,@Controller,@Repositoriy
在spring2.5以后的版本都为我们提供了组件自动扫描机制,大大方便了我们这新程序员啊,它可以在类路径下寻找标注了 ----
@Component,@Service,@Controller,@Repository注解的类,并把这些类纳入进spring容器中管理。
下面写这个是引入component的扫描组件
<context:component-scan base-package ...
MVC2.0前置
.NET
MVC执行过程:
1、网址路由比对
2、执行Controller与Action
3、执行View并返回结果
在使用MVC中是由IgnoreRoute()辅助方法对比成功的,会导致程序直接跳离MVC的执行生命周期,将程序继续执行的权利交回给IIS,由IIS决定接下来应该由哪个模块或哪个处理例程(Handler)来执行。
阶段
...
Flex 框架PureMVC 源码解析之--Controller篇
1、Controller实现了IController接口,提供其中方法的实现。
package org.puremvc.as3.core
{
import org.puremvc.as3.core.*;
import org.puremvc.as3.interfaces.*;
import org.puremvc.as3.patterns.observer.*;
...
正确配置spring aop,在controller中使用AOP
在controller中使用AOP的问题主要在于如何让controller能够被检测到。
controller和其他spring bean的区别在于:controller是由mvc定义并在web.xml中的dispatcher中定义的。
解决方法:
1、正确定义controller,(比较通用的做法,没有特殊情况的话,大部分应用没有这个问题)
a. 将服务层的类都放在Application ...
5.3 create a controller for users to register our site.
1. rails generate controller Users new
this line of code will generate a users controller and a new action,
also a spec test file of
users_controller_spec.rb
and also a route
get &qu ...
Rails Study(11)Action Controller Overviews - Cookies
Rails Study(11)Action Controller Overviews - Cookies
5. Cookies
You application can store small amounts of data on the client ----cookies, that will be persisted across requests and even sessions.
cl ...
Grails - Logging from a Controller or Service
Logging informational messages from a controller or service is the sort of thing I wish I'd figured out how to do when I first started playing around with Grails. All the information is in the docs, bu ...
浅析gxt-mvc框架各模块的使用和意义
gxt中的mvc框架即:视图层(view)、控制层(controller)和事件层(event)。
视图层负责画面的初始化,控制层负责逻辑跳转,事件层负责声明事件类型。
对于controller类,一般带有构造器,handleEvent(AppEvent event)方法以及onInit(AppEvent event)方法。构造器中大都注册事件类型,譬如registerEventTypes(App ...
Spring 注解学习手札(三) 表单页面处理
昨天小歇一天,看着两篇博客迅速飙升的点击率,十分欣慰。今天来研究一下表单页面的处理问题。
相关参考:
Spring 注解学习手札(一) 构建简单Web应用
Spring 注解学习手札(二) 控制层梳理
Spring 注解学习手札(三) 表单页面处理
Spring 注解学习手札(四) 持久层浅析
Spring 注解学习手札(五) 业务层事务处理
Spring 注解学习手札(六) 测试
Spring ...