yeafee@夜飛郎

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

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            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 閱讀(398) 評論(0)  編輯  收藏 所屬分類: OpenSource
          主站蜘蛛池模板: 万山特区| 疏勒县| 富蕴县| 密云县| 灌阳县| 凤城市| 东兰县| 通道| 如皋市| 年辖:市辖区| 保德县| 丰镇市| 都江堰市| 北安市| 雷州市| 礼泉县| 棋牌| 会宁县| 大理市| 桂东县| 嘉善县| 呼图壁县| 花垣县| 平度市| 垣曲县| 中山市| 宁安市| 屯门区| 宁都县| 西安市| 苏尼特右旗| 定西市| 栖霞市| 凭祥市| 延川县| 天祝| 连山| 和平区| 游戏| 酉阳| 泉州市|