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 閱讀(394) 評論(0)  編輯  收藏 所屬分類: OpenSource
          主站蜘蛛池模板: 集安市| 红河县| 清远市| 喀喇| 荆门市| 夹江县| 五峰| 子洲县| 寿阳县| 耿马| 介休市| 桃园市| 威远县| 武隆县| 盐亭县| 新泰市| 元江| 理塘县| 阳信县| 迁西县| 泸州市| 蛟河市| 台南市| 鄱阳县| 湟源县| 栾城县| 黄浦区| 阿荣旗| 铜鼓县| 桃园县| 宁河县| 武义县| 新蔡县| 开封市| 自治县| 阿瓦提县| 嘉义县| 玉龙| 汉中市| 石屏县| 建始县|