How saketh0211/spring-petclinic works
Spring PetClinic is a Spring Boot web application for managing pet owners, their pets and visits, and veterinary staff. The principal workflow is a browser request handled by the application, which presents clinic information and supports owner, pet, and visit management; the README documents an in-memory H2 default and optional MySQL/PostgreSQL profiles. The graph preserves those domain stages and the vet directory. Source excerpts were not provided for runtime Java code, so internal calls and template/repository wiring are shown only as unverified dashed links.
Main entry points: PetClinicApplication.java PetClinic app · templates Thymeleaf views · PetController.java Pet management · model Clinic domain model
Components 17
Web experience
- Welcome page
src/main/java/org/springframework/samples/petclinic/system/WelcomeController.java - Web configuration
src/main/java/org/springframework/samples/petclinic/system/WebConfiguration.java - Thymeleaf views
src/main/resources/templates
Owner records
- Owner management
src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java - Owner records
src/main/java/org/springframework/samples/petclinic/owner/OwnerRepository.java - Pet management
src/main/java/org/springframework/samples/petclinic/owner/PetController.java - Pet types
src/main/java/org/springframework/samples/petclinic/owner/PetTypeRepository.java - Pet validation
src/main/java/org/springframework/samples/petclinic/owner/PetValidator.java - Visit records
src/main/java/org/springframework/samples/petclinic/owner/VisitController.java - Clinic domain model
src/main/java/org/springframework/samples/petclinic/model
Veterinary staff
- Vet directory
src/main/java/org/springframework/samples/petclinic/vet/VetController.java - Vet records
src/main/java/org/springframework/samples/petclinic/vet/VetRepository.java
Application and data
- PetClinic app
src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java - Caching
src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java - Clinic database
src/main/resources/db - Database profiles
src/main/resources/application.properties
Other components
- Clinic user
Connections 19
- Clinic user → PetClinic app: uses
README.md - PetClinic app → Welcome page: routes to
- PetClinic app → Web configuration: configures
- Welcome page → Thymeleaf views: renders
- Owner management → Owner records: uses
- Owner management → Thymeleaf views: renders
- Pet management → Pet types: uses
- Pet management → Pet validation: validates
- Pet management → Thymeleaf views: renders
- Visit records → Thymeleaf views: renders
- Vet directory → Vet records: uses
- Vet directory → Thymeleaf views: renders
- Owner management → Clinic domain model: uses
- Pet management → Clinic domain model: uses
- Visit records → Clinic domain model: uses
- Vet directory → Clinic domain model: uses
- PetClinic app → Clinic database: loads data
README.md - Database profiles → Clinic database: selects profile
README.md - PetClinic app → Caching: configures