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
          主站蜘蛛池模板: 安乡县| 上高县| 南丹县| 乌兰县| 青川县| 行唐县| 凤城市| 奉新县| 禹州市| 定南县| 儋州市| 郑州市| 修水县| 汾阳市| 比如县| 江永县| 温泉县| 威海市| 罗城| 宝山区| 三原县| 江安县| 娱乐| 西平县| 武陟县| 新泰市| 桑植县| 改则县| 云南省| 洛川县| 泸定县| 晋宁县| 广州市| 大竹县| 涟源市| 民权县| 广德县| 通河县| 山东| 大埔县| 甘南县|