首页上一页 1 下一页尾页 7 条记录 1/1页
《Java Web编程宝典》第13章问题2
发表在JavaWeb图书答疑
2012-03-26
是否精华
是
否
版块置顶:
是
否
13.7程序中servlet_config.xml中:
<bean id="CheckClass" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"> ★1
<value>com.mr.aop.UserInterface</value>
</property>
<property name="target"> ★2
<ref local="executeInsert" />
</property>
<property name="interceptorNames">
<list>
<value>PointcutAdvisor</value>
<value>affterAdvice</value>
</list>
</property>
</bean>
<bean id="paraMethodResolver"
class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver">
<property name="paramName"> ★3
<value>action</value>
</property>
<property name="defaultMethodName"> ★4
<value>execute</value>
</property>
</bean>
给★1至★4分别加上注释,并说明类ProxyFactoryBean和ParameterMethodNameResolver起什么作用?
<bean id="CheckClass" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"> ★1
<value>com.mr.aop.UserInterface</value>
</property>
<property name="target"> ★2
<ref local="executeInsert" />
</property>
<property name="interceptorNames">
<list>
<value>PointcutAdvisor</value>
<value>affterAdvice</value>
</list>
</property>
</bean>
<bean id="paraMethodResolver"
class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver">
<property name="paramName"> ★3
<value>action</value>
</property>
<property name="defaultMethodName"> ★4
<value>execute</value>
</property>
</bean>
给★1至★4分别加上注释,并说明类ProxyFactoryBean和ParameterMethodNameResolver起什么作用?