方槍槍的java世界

          不要因為風雨飄落就停止了你的腳步,真正的得失就在你的心中。 做喜歡做的事,不輕言放棄!

          03 整合spring3和mybatis進行web開發之dispatcher_servlet_xml(請注意拷貝引用的命名空間要全)

          <?xml version="1.0" encoding="UTF-8"?>
          <beans xmlns=" xmlns:xsi=" xmlns:aop="http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/context
                http://www.springframework.org/schema/context/spring-context-3.0.xsd
                http://www.springframework.org/schema/tx
                http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                http://www.springframework.org/schema/aop
                http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                http://www.springframework.org/schema/mvc
                http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
                http://www.springframework.org/schema/task
                           
           <mvc:annotation-driven />   
              <context:component-scan base-package="com.tianhe" />

              <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
                  <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
                  <property name="prefix" value="/WEB-INF/" />
                  <property name="suffix" value=".jsp"></property>
              </bean>
             
              <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource" p:basename="i18n/messages" />
             
          </beans>
           
           

          posted on 2012-07-07 14:58 做強大的自己 閱讀(263) 評論(0)  編輯  收藏 所屬分類: Spring

          主站蜘蛛池模板: 建阳市| 当雄县| 偏关县| 罗江县| 分宜县| 抚松县| 定日县| 东明县| 澄迈县| 巫山县| 榕江县| 南华县| 会宁县| 久治县| 安顺市| 康定县| 新化县| 长宁区| 河曲县| 勐海县| 新安县| 晋州市| 巴楚县| 永定县| 新闻| 辰溪县| 龙江县| 九龙坡区| 阜阳市| 宁强县| 徐州市| 叙永县| 拜城县| 汾阳市| 福清市| 惠来县| 梅州市| 枣阳市| 阳东县| 开封县| 泰和县|