云自無心水自閑

          天平山上白云泉,云自無心水自閑。何必奔沖山下去,更添波浪向人間!
          posts - 288, comments - 524, trackbacks - 0, articles - 6
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          appfuse的建立步驟

          Posted on 2007-01-17 01:50 云自無心水自閑 閱讀(367) 評論(1)  編輯  收藏 所屬分類: Java
          1. 要把database.properties和mail.properties拷貝到build/classes
          2. 要在數(shù)據(jù)庫中建立test用戶
          3. ant db-create建立數(shù)據(jù)庫
          4. ant db-prepare建立數(shù)據(jù)表
          5. ant db-load 將數(shù)據(jù)插入到數(shù)據(jù)表中
          6. 修改myapp\build\classes\META-INF目錄中的applicationContext-hibernate.xml
          添加
          ??? <bean id="propertyConfigurer"
          ??? ??? class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
          ??? ??? <property name="location"><value>database.properties</value></property>
          ??? </bean>

          ??? <bean id="dataSource"
          ??? ??? class="org.springframework.jdbc.datasource.DriverManagerDataSource">
          ??? ??? <property name="driverClassName">
          ??? ??? ??? <value>${hibernate.connection.driver_class}</value>
          ??? ??? </property>
          ??? ??? <property name="url">
          ??? ??? ??? <value>${hibernate.connection.url}</value>
          ??? ??? </property>
          ??? ??? <property name="username">
          ??? ??? ??? <value>${hibernate.connection.username}</value>
          ??? ??? </property>
          ??? ??? <property name="password">
          ??? ??? ??? <value>${hibernate.connection.password}</value>
          ??? ??? </property>
          ??? </bean>
          7. 修改myapp\build\class\META-INF目錄下的applicationContext-service.xml
          將其中的mail.host, mail.username, mail.password, mail.default.from
          三個變量修改成合適的值
          8. ant deploy
          9. 啟動tomcat, http://localhost:8080/myapp
          10. 輸入mraible,密碼tomcat,進(jìn)入系統(tǒng)


          評論

          # re: appfuse[未登錄]  回復(fù)  更多評論   

          2007-01-19 15:08 by Nomad
          無意中又看到一位在Flex研究上比較努力的作者
          主站蜘蛛池模板: 安阳市| 隆德县| 南岸区| 尚义县| 股票| 中卫市| 新乡县| 灯塔市| 颍上县| 苗栗县| 故城县| 灵璧县| 抚州市| 镇江市| 鹤壁市| 许昌市| 依安县| 临邑县| 南和县| 凉山| 姚安县| 禹城市| 博湖县| 鹤庆县| 通榆县| 奇台县| 沅江市| 普兰店市| 双柏县| 射阳县| 桃源县| 和政县| 宁国市| 临桂县| 西乡县| 巴楚县| 湟源县| 思南县| 台山市| 巩留县| 泾川县|