|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 |
| - Copyright 2010-2012 the original author or authors. |
| 3 | + Copyright 2010-2015 the original author or authors. |
4 | 4 |
|
5 | 5 | Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | you may not use this file except in compliance with the License.
|
@@ -83,15 +83,15 @@ SUM: 58 823 612 3464
|
83 | 83 | /mybatis
|
84 | 84 | /jpetstore
|
85 | 85 | /domain <tt><-- Business domain objects go here.</tt>
|
86 |
| - /persistence <tt><-- Mapper interfaces go here.</tt> |
| 86 | + /mapper <tt><-- Mapper interfaces go here.</tt> |
87 | 87 | /service <tt><-- Application logic goes here.</tt>
|
88 | 88 | /web
|
89 | 89 | /actions <tt><-- Presentation logic (actions) goes here.</tt>
|
90 | 90 | /resources <tt><-- Non java files go here.</tt>
|
91 | 91 | /org
|
92 | 92 | /mybatis
|
93 | 93 | /jpetstore
|
94 |
| - /persistence <tt><-- Mapper XML files go here.</tt> |
| 94 | + /mapper <tt><-- Mapper XML files go here.</tt> |
95 | 95 | /database
|
96 | 96 | /webapp
|
97 | 97 | /css
|
@@ -234,7 +234,7 @@ SUM: 58 823 612 3464
|
234 | 234 |
|
235 | 235 | <source><![CDATA[
|
236 | 236 | <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
237 |
| - <property name="basePackage" value="org.mybatis.jpetstore.persistence" /> |
| 237 | + <property name="basePackage" value="org.mybatis.jpetstore.mapper" /> |
238 | 238 | </bean>
|
239 | 239 | ]]></source>
|
240 | 240 |
|
@@ -365,7 +365,7 @@ public interface OrderMapper {
|
365 | 365 | }]]></source>
|
366 | 366 |
|
367 | 367 | <source><![CDATA[
|
368 |
| -<mapper namespace="org.mybatis.jpetstore.persistence.OrderMapper"> |
| 368 | +<mapper namespace="org.mybatis.jpetstore.mapper.OrderMapper"> |
369 | 369 |
|
370 | 370 | <cache />
|
371 | 371 |
|
@@ -415,21 +415,14 @@ public interface OrderMapper {
|
415 | 415 | <subsection name="Running JPetStore">
|
416 | 416 | <p>You may ask. Does all this work? Yes it does! Let's run it.</p>
|
417 | 417 | <p>Let's assume you have a clean computer. These are the steps you should follow to
|
418 |
| - have the sample running on Tomcat with Eclipse: |
| 418 | + have the sample running under Tomcat: |
419 | 419 | </p>
|
420 | 420 | <ul>
|
421 |
| - <li>Download and install a JDK 6 or later</li> |
422 |
| - <li>Download and upzip Eclipse</li> |
423 |
| - <li>Download and unzip Tomcat</li> |
424 |
| - <li>Run Eclipse</li> |
425 |
| - <li>Go to Git tab</li> |
426 | 421 | <li>Clone the repo https://github.com/mybatis/jpetstore-6.git</li>
|
427 |
| - <li>Select working directory, right click and select Import Projects (general)</li> |
428 |
| - <li>Go to Java EE tab</li> |
429 |
| - <li>Right click on jpetstore project and select "Configure/Convert to Maven Project"</li> |
430 |
| - <li>Right click on jpetstore project and select "run on server"</li> |
431 |
| - <li>Select Tomcat Server and set your installation directory</li> |
432 |
| - <li>JPetStore home page should be shown!!</li> |
| 422 | + <li>Open command prompt/shell and change to cloned directory</li> |
| 423 | + <li>Issue following command to run project using Tomcat 7: mvn clean tomcat7:run</li> |
| 424 | + <li>Run application in browser http://localhost:8080/jpetstore/</li> |
| 425 | + <li>Press Ctrl-C to stop the server.</li> |
433 | 426 | </ul>
|
434 | 427 | <p>
|
435 | 428 | Now you are ready to play with it, experiment with your own changes or whatever you want.
|
|
0 commit comments