https://github.com/mybatis/jpetstore-6
A web application built on top of MyBatis 3, Spring 3 and Stripes
https://github.com/mybatis/jpetstore-6
java samples
Last synced: 12 months ago
JSON representation
A web application built on top of MyBatis 3, Spring 3 and Stripes
- Host: GitHub
- URL: https://github.com/mybatis/jpetstore-6
- Owner: mybatis
- License: apache-2.0
- Created: 2013-02-10T11:13:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-04-28T03:36:50.000Z (12 months ago)
- Last Synced: 2025-04-28T12:04:42.464Z (12 months ago)
- Topics: java, samples
- Language: Java
- Homepage: http://www.mybatis.org/spring/sample.html
- Size: 4.57 MB
- Stars: 582
- Watchers: 71
- Forks: 1,522
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MyBatis JPetStore
=================
[](https://github.com/mybatis/jpetstore-6/actions/workflows/ci.yaml)
[](https://github.com/mybatis/jpetstore-6/actions/workflows/support.yaml)
[](https://coveralls.io/github/mybatis/jpetstore-6?branch=master)
[](https://www.apache.org/licenses/LICENSE-2.0.html)

JPetStore 6 is a full web application built on top of MyBatis 3, Spring 5 and Stripes.
Essentials
----------
* [See the docs](http://www.mybatis.org/jpetstore-6)
## Other versions that you may want to know about
- JPetstore on top of Spring, Spring MVC, MyBatis 3, and Spring Security https://github.com/making/spring-jpetstore
- JPetstore with Vaadin and Spring Boot with Java Config https://github.com/igor-baiborodine/jpetstore-6-vaadin-spring-boot
- JPetstore on MyBatis Spring Boot Starter https://github.com/kazuki43zoo/mybatis-spring-boot-jpetstore
## Run on Application Server
Running JPetStore sample under Tomcat (using the [cargo-maven2-plugin](https://codehaus-cargo.github.io/cargo/Maven2+plugin.html)).
- Clone this repository
```
$ git clone https://github.com/mybatis/jpetstore-6.git
```
- Build war file
```
$ cd jpetstore-6
$ ./mvnw clean package
```
- Startup the Tomcat server and deploy web application
```
$ ./mvnw cargo:run -P tomcat90
```
> Note:
>
> We provide maven profiles per application server as follow:
>
> | Profile | Description |
> | -------------- | ----------- |
> | tomcat90 | Running under the Tomcat 9.0 |
> | tomcat85 | Running under the Tomcat 8.5 |
> | tomee80 | Running under the TomEE 8.0(Java EE 8) |
> | tomee71 | Running under the TomEE 7.1(Java EE 7) |
> | wildfly26 | Running under the WildFly 26(Java EE 8) |
> | wildfly13 | Running under the WildFly 13(Java EE 7) |
> | liberty-ee8 | Running under the WebSphere Liberty(Java EE 8) |
> | liberty-ee7 | Running under the WebSphere Liberty(Java EE 7) |
> | jetty | Running under the Jetty 9 |
> | glassfish5 | Running under the GlassFish 5(Java EE 8) |
> | glassfish4 | Running under the GlassFish 4(Java EE 7) |
> | resin | Running under the Resin 4 |
- Run application in browser http://localhost:8080/jpetstore/
- Press Ctrl-C to stop the server.
## Run on Docker
```
docker build . -t jpetstore
docker run -p 8080:8080 jpetstore
```
or with Docker Compose:
```
docker compose up -d
```
## Try integration tests
Perform integration tests for screen transition.
```
$ ./mvnw clean verify -P tomcat90
```