yeafee@夜飞郎

it's usually better to solve problems with simplicity and finesse rather than muscle.

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  33 随笔 :: 3 文章 :: 2 评论 :: 0 Trackbacks
 
1<!--web.xml---->
2<servlet>
3  <servlet-name>petstore</servlet-name>
4  <servlet-class>org.springframework.web.servlet.DispatcherServlet
5  </servlet-class>
6  <load-on-startup>2</load-on-startup>
7 </servlet>
8
1<!--petstroe-servlet.xml---->
2<bean name="/shop/newAccount.do" 
3class="org.springframework.samples.jpetstore.web.spring.AccountFormController">
4  <property name="petStore" ref="petStore"/>
5  <property name="validator" ref="accountValidator"/>
6  <property name="successView" value="index"/>
7 </bean>

 1<!--applicationContext.xml-->
 2<bean id="petStore" parent="baseTransactionProxy">
 3        <property name="target">
 4            <bean 
 5class="org.springframework.samples.jpetstore.domain.logic.PetStoreImpl">
 6                <property name="accountDao" ref="accountDao"/>
 7                <property name="categoryDao" ref="categoryDao"/>
 8                <property name="productDao" ref="productDao"/>
 9                <property name="itemDao" ref="itemDao"/>
10                <property name="orderDao" ref="orderDao"/>
11            </bean>
12        </property>

posted on 2005-12-09 12:47 @yeafee 阅读(388) 评论(0)  编辑  收藏 所属分类: OpenSource

只有注册用户登录后才能发表评论。


网站导航: