Commit 35eaa755 authored by Eduardo Macarron's avatar Eduardo Macarron

[jpetstore] upgraded dependencies, cleaned Spring applicationContext and new INSTRUCTIONS file

parent a477b30f
Follow the next steps to run the sample on Tomcat 7.0
- Download and install a JDK
- Download and install Eclipse
- Run Eclipse
- In eclipse, go to Help/Eclipse Marketplace
- Type "m2e" and press install (maven)
- Download and unzip Tomcat 7
- Unzip mybatis-jpetstore-6.0.x-sources.zip
- In eclipse, select File/Import/Maven/Existing Maven Projects
- Select the folder where you unzipped mybatis-jpetstore-6.0.x-sources.zip
- A new project named "jpetstore" will be shown
- Right click on jpetstore project and select "run on server"
- Select Tomcat 7 Server and set your installation directory
- JPetStore home page should be shown
\ No newline at end of file
......@@ -12,12 +12,12 @@
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.5.RELEASE</version>
<version>3.0.6.RELEASE</version>
</dependency>
<dependency>
<groupId>net.sourceforge.stripes</groupId>
......@@ -63,12 +63,12 @@
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2</version>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.10</version>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.2.4</version>
</dependency>
</dependencies>
<build>
......
......@@ -17,7 +17,6 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:context="http://www.springframework.org/schema/context"
......@@ -25,8 +24,7 @@
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<!-- in-memory database and a datasource -->
<jdbc:embedded-database id="dataSource">
......@@ -39,12 +37,9 @@
<property name="dataSource" ref="dataSource" />
</bean>
<!-- enable component scanning (beware that this does not enable mapper scanning!) -->
<!-- enable component scanning and autowire (beware that this does not enable mapper scanning!) -->
<context:component-scan base-package="org.mybatis.jpetstore.service" />
<!-- enable autowire -->
<context:annotation-config />
<!-- enable transaction demarcation with annotations -->
<tx:annotation-driven />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment