南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)OOT实习指南

00T实习指南 顾天晓 ktxjoro@gmail.com
OOT实习指南 顾天晓 ktxjoro@gmail.com

内容提要 ·运行起Jpetstore ·Jpetstore源码解析 ·Spring loC ·Spring MVC ·实习项目分析
内容提要 • 运行起Jpetstore • Jpetstore源码解析 • Spring IoC • Spring MVC • 实习项目分析

运行Jpetstore ·搭建环境 -下载安装jdk -下载安装SpringSource Tool Suite ·下载subversion插件 一下载Jpetstore源码 ·编译、打包、部署
运行Jpetstore • 搭建环境 – 下载安装jdk – 下载安装SpringSource Tool Suite • 下载subversion插件 – 下载Jpetstore源码 • 编译、打包、部署

下载subversion插件 。Eclipse Plugin -http://www.eclipse.org/subversive/downloads.ph 力 Help->Install New Software -Update site http://download.eclipse.org/technology/subversive/0.7 /update-site/ ·SpringByExample
下载subversion插件 • Eclipse Plugin – http://www.eclipse.org/subversive/downloads.ph p – Help->Install New Software – Update site • http://download.eclipse.org/technology/subversive/0.7 /update-site/ • SpringByExample

下载jpetstore源码 。SpringSource.org -https://src.springsource.org/svn/spring-samples/ 一 svn co https://src.springsource.org/svn/spring- samples/jpetstore/trunk/org.springframework.sa mples.jpetstore/jpetstore -Use subversion plugin SpringByExample
下载jpetstore源码 • SpringSource.org – https://src.springsource.org/svn/spring-samples/ – svn co https://src.springsource.org/svn/spring- samples/jpetstore/trunk/org.springframework.sa mples.jpetstore/ jpetstore – Use subversion plugin • SpringByExample

编译、打包源码 ·Maven -http://maven.apache.org/ -STS已经集成Maven插件 ·Project Object Model -pom.xml validate,compile,test,package,integration-test, verify,install,deploy
编译、打包源码 • Maven – http://maven.apache.org/ – STS已经集成Maven插件 • Project Object Model – pom.xml – validate, compile, test, package, integration-test, verify, install, deploy

编译、打包源码 。pom.xml - - - -
编译、打包源码 • pom.xml – – – –

编译、打包源码 Jpetstore readme.txt -1.Run "mvn package"to generate the WAR file -2.Copy the generated "target/org.springframework.samples.jpetstore-1.0.0- SNAPSHOT.war to "/webapps/jpetstore.war" -3.Start HSQLDB via "db/hsqldb/server.bat"or "db/hsqldb/server.sh" -4.Start Tomcat (default port will be 8080) -5.Open "http://localhost:8080/jpetstore"in an Internet browser
编译、打包源码 • Jpetstore readme.txt – 1. Run "mvn package" to generate the WAR file – 2. Copy the generated "target/org.springframework.samples.jpetstore-1.0.0- SNAPSHOT.war" to “/webapps/jpetstore.war" – 3. Start HSQLDB via "db/hsqldb/server.bat" or "db/hsqldb/server.sh" – 4. Start Tomcat (default port will be 8080) – 5. Open "http://localhost:8080/jpetstore" in an Internet browser

编译、打包源码 ·修改pom.xml -3.0.4.RELEASE -添加slf4j-nop-1.5.2.jar运行依懒支持 org.slf4j slf4j-nop 1.5.2 runtime
编译、打包源码 • 修改pom.xml – 3.0.4.RELEASE – 添加slf4j-nop-1.5.2.jar运行依赖支持 org.slf4j slf4j-nop 1.5.2 runtime

编译、打包源码 ·启动数据库hsqldb windows:server.bat Linux:server.sh Server.bat -mvn -f %~dpopom.xml -Ddb.file=%~dpojpetstore exec:java
编译、打包源码 • 启动数据库hsqldb – windows:server.bat – Linux:server.sh • Server.bat – mvn -f %~dp0pom.xml -Ddb.file=%~dp0jpetstore exec:java
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 南京大学:《面向对象技术 OOT》课程教学资源(实习指南)医院预约挂号系统.docx
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)实习项目概述.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)19 复习和总结 Object-Oriented Technology:Review and Conclusion Remarks.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)18 分布对象 Distributed Objects(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)17 分布对象 Distributed Objects(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)16 构件化软件 Component Software.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)15 面向方面的编程 Aspect Oriented Programming(AOP).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)14 模式和框架 Pattern and Framework.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)13 设计模式 Design Patterns(3).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)12 设计模式 Design Patterns(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)11 设计模式 Design Patterns(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)10 敏捷软件开发 Agile Software Development.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)09 面向对象的分析与设计简介 OOA & OOD:An introduction.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)08 对象序列化和持久化 Serialization and Persistence.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)07 Java并发编程 Concurrent Programming in Java.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)06 并发对象 Concurrent Objects.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)05 异常处理 Exception Handling.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)04 契约式设计 Design by Contract.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)03 类和对象 Class and Object.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)02 抽象数据类型 Abstract Data Types.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)33 O-O programming and Ada.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)06 Abstract data types.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)27 Object-oriented analysis.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)E Bibliography.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)07 The static structure:classes.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)30 Concurrency, distribution, client-server and the Internet.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)11 Design by Contract:building reliable software.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)02 Criteria of object orientation.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)34 Emulating object technology in non-O-O environments.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)36 An object-oriented environment.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)Epilogue, In Full Frankness Exposing the Language.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)12 When the contract is broken:exception handling.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)22 How to find the classes.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)10 Genericity.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)B Genericity versus inheritance.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)D A glossary of object technology.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)32 Some O-O techniques for graphical interactive applications.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)14 Introduction to inheritance.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)24 Using inheritance well.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)16 Inheritance techniques.pdf