How bespin-core/app works
Spring PetClinic is a Spring Boot web application for managing pet owners, pets, visits, and veterinarians. A browser user accesses the application, which presents domain-specific pages and persists clinic data; the README documents an in-memory H2 default and MySQL/PostgreSQL profiles. The tree identifies the domain controllers, entities, repositories, and Thymeleaf templates, but their source was not sampled, so internal call relationships are shown as unverified rather than asserted. The README names the application entry point and caching configuration.
Main entry points: PetClinicApplication.java PetClinic application · PetController.java Pet management · application.properties Configured database · OwnerRepository.java Owner and pet data
Components 20
Application and system
- PetClinic application
src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java - System pages
src/main/java/org/springframework/samples/petclinic/system - Cache configuration
src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java
Clinic workflows
- Owner management
src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java - Pet management
src/main/java/org/springframework/samples/petclinic/owner/PetController.java - Visit management
src/main/java/org/springframework/samples/petclinic/owner/VisitController.java - Veterinarian directory
src/main/java/org/springframework/samples/petclinic/vet/VetController.java - Clinic domain model
src/main/java/org/springframework/samples/petclinic/model/Person.java
Persistence
- Owner and pet data
src/main/java/org/springframework/samples/petclinic/owner/OwnerRepository.java - Pet type data
src/main/java/org/springframework/samples/petclinic/owner/PetTypeRepository.java - Veterinarian data
src/main/java/org/springframework/samples/petclinic/vet/VetRepository.java - Configured database
src/main/resources/application.properties
Web presentation
- Thymeleaf pages
src/main/resources/templates - Owner and pet pages
src/main/resources/templates/owners - Visit form
src/main/resources/templates/pets/createOrUpdateVisitForm.html - Veterinarian page
src/main/resources/templates/vets/vetList.html
Other components
- Browser user
- H2 database
- MySQL database
- PostgreSQL database
Connections 23
- Browser user → PetClinic application: accesses
README.md - PetClinic application → System pages: routes to
- PetClinic application → Owner management: routes to
- PetClinic application → Pet management: routes to
- PetClinic application → Visit management: routes to
- PetClinic application → Veterinarian directory: routes to
- PetClinic application → Thymeleaf pages: renders
- Owner management → Owner and pet data: uses
- Pet management → Owner and pet data: uses
- Pet management → Pet type data: uses
- Visit management → Owner and pet data: uses
- Veterinarian directory → Veterinarian data: uses
- Owner management → Owner and pet pages: renders
- Pet management → Owner and pet pages: renders
- Visit management → Visit form: renders
- Veterinarian directory → Veterinarian page: renders
- Owner and pet data → Clinic domain model: uses
- Veterinarian data → Clinic domain model: uses
- PetClinic application → Configured database: configures
- Configured database → H2 database: defaults to
README.md - Configured database → MySQL database: profile selects
README.md - Configured database → PostgreSQL database: profile selects
README.md - PetClinic application → Cache configuration: configures