luaedge

          常用鏈接

          統計

          最新評論

          2009年3月9日 #

          JpetStore :Spring MVC + Spring + iBatis + mysql

           

          JpetStore Spring MVC + Spring + iBatis + mysql  

           

             版本是 spring-framework-2.5.6,第一步是讓它運行起來。

          1.       spring-framework-2.5.6/samples/jpetstore/war ,把 war 改名為 petstore

          2.       修改 petstore/WEB-INF/jdbc.properties

          jdbc.driverClassName=com.mysql.jdbc.Driver

          jdbc.url=jdbc:mysql://localhost:3306/jpetstore

          jdbc.username=username

          jdbc.password=password

          3.       mysql-connector-java-5.1.7-bin.jar 放到 petstore/war /WEB-INF/class 目錄下

          4.       spring-framework-2.5.6/samples/jpetstore/db/mysql 目錄下的兩個 sql 文件導入到 mysql 服務器。

          5.       ,把改名后的 petstore 整個文件夾放到 tomcat webapp 目錄下。

          6.       啟動 Tomcat 服務器,在瀏覽器中打開:http://localhost:8000/petstore (端口號由 Tomcat 中的 server.xml 定義)

          7.       Well done!

          posted @ 2009-03-09 10:34 luaedge 閱讀(1031) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 乐陵市| 上栗县| 黄浦区| 阿拉尔市| 海淀区| 大方县| 北宁市| 汉源县| 景泰县| 盐边县| 丁青县| 涟水县| 江西省| 南开区| 板桥市| 土默特右旗| 吴川市| 桃园市| 金川县| 临澧县| 青州市| 凌源市| 育儿| 壤塘县| 仙居县| 广西| 辰溪县| 高淳县| 探索| 肥西县| 兴海县| 上栗县| 达州市| 孙吴县| 盐边县| 吉木萨尔县| 浦北县| 奉节县| 新和县| 武清区| 潮安县|