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 阅读(1023) | 评论 (0)编辑 收藏

2009年2月22日 #

Java 调用 Groovy 写的类。

注意事项:

1.在 Eclipse 中要先加入 Groovy nature.
2.Groovy 类写完后,应该先编译成 .class 文件。
3.在java 中可以直接引用。

posted @ 2009-02-22 17:15 luaedge| 编辑 收藏

仅列出标题