-
-
Notifications
You must be signed in to change notification settings - Fork 6
Petclinic Tutorial
In this Tutorial we will develop an application for a petclinic. In this application pet-owners shall be able to manage their pets and their pet's visits at veterinarians (vets).
Vets shall be able to administrate their patients (which are the pets) and the visits of the pets.
And these are the concrete requirements:
- Owners of pets must be able to register themself
- Owners of pets must be able to add and edit their pets
- Owners of pets must be able to make appointments for visits (In order to do this, they have to know the vets and their specialties)
- Vets must be able to maintain their visits, add comments and filter by owner or pet.
The application developed in this tutorial is based on the petclinic-sample of the Spring Framework.
Please clone the following repository:
git clone https://github.com/SpringSource/spring-petclinic.git
Please download spring-framework-3.0.6-with-docs.zip from here from here. This tutorial was written with the sample delivered with version 3.0.6 of the Spring Framework and may or may not work with other versions. In the zip-file within the base-folder spring-framework-2.5.6/ you find a folder named samples. Within that folder there is a folder named petclinic. Please unpack this folder. It is the only folder we need from that zip.
Like in the simple-tutorial we want to use maven 3 to build and deploy our application. So the first step is to put a pom.xml file into the folder petclinic with the following content.
As a sidenote it is important to notice that in previous version the specific versions of dependencies like the spring-framework were written in the pom.xml. During the transition to version 3.0.x of spring jpasecurity was modularized and all versions are now specified in /jpasecurity-parent/pom.xml.