App
spring-projects / spring-petclinic
A sample Spring-based application
This connects Repowise to spring-projects/spring-petclinic's code. It does not install spring-petclinic.
Repowise maps public repos from their source. Not affiliated with spring-projects. What is Repowise?
github.com/spring-projects/spring-petclinicIndexed at 500158f
What is spring-petclinic?
spring-petclinic is a sample Spring Boot application for developers who want to run a database-backed web app locally. When it starts, it fills an in-memory H2 database with default data and serves a web interface that reads and writes that data. The project is written in Java and built with Maven or Gradle. To install it, run git clone https://github.com/spring-projects/spring-petclinic.git and follow the steps below. Its code health is 8.8 out of 10 (Excellent). The last commit to spring-petclinic was on Sep 29, 2026, and 134 people have contributed.
As of commit 500158f, indexed Oct 16, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentsspring-petclinic.md
Repo facts: type, license, health, rank, contributors
| Type | App |
|---|---|
| License | Apache-2.0 |
| Code health | 8.8 / 10 (Excellent) |
| Health rank | Not ranked (leaderboards need 100+ files) |
| Last commit | Sep 29, 2026 |
| Contributors | 134 |
| Bus factor | 2 |
| Size | 80 files, 2,855 lines |
Install spring-petclinic
Commands copied from the README
- 1Clone the spring-petclinic repository.
git clone https://github.com/spring-projects/spring-petclinic.git - 2Move into the spring-petclinic folder.
cd spring-petclinic - 3Start the application with Maven.
./mvnw spring-boot:run - 4Or start the application with Gradle.
./gradlew bootRun - 5Build a container image with the Spring Boot build plugin, which needs a Docker daemon.
./mvnw spring-boot:build-image
Explore spring-petclinic
- DocumentationModule-by-module documentation, 46 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Ask about this code in your agent
This connects Repowise to spring-petclinic's code. It does not install spring-petclinic. To install spring-petclinic, use the install steps.
Useful if you want to change or fork spring-petclinic: your agent can ask how it is put together and get answers that cite its files.
Ask about spring-petclinic
Answers come from spring-petclinic's README and source, with the files they cite. Two free answers a day without an account.
Want this for your own codebase? Map your repo free
About this page
Get a page like this for your own codebase
Repowise built this map of spring-projects/spring-petclinic from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
spring-projects/spring-petclinic FAQ
What is spring-petclinic?
spring-petclinic is a sample Spring Boot application for running and exercising a database-backed web app locally. It provides a web interface for creating and editing owners and their pets. It is written in Java.
How does spring-petclinic work?
spring-petclinic starts and fills an in-memory H2 database with default data, then serves web pages backed by that database. Controllers in the owner package handle requests and save changes through JPA. Other database types are selected with Spring profiles.
How do I install spring-petclinic?
spring-petclinic is installed by cloning its repository and then starting it with ./mvnw spring-boot:run or ./gradlew bootRun. Java 17 or later is required for the build. See the install steps
What language is spring-petclinic written in?
spring-petclinic is written in Java, with 50 Java files in the repository. It is built with Maven or Gradle and requires Java 17 or later.
How is the spring-petclinic code organized?
spring-petclinic keeps its Java code under src/main/java/org/springframework/samples/petclinic. The owner package holds owner and pet classes with their web controller, the model package holds shared entity types, and the system package holds configuration.
Who is spring-petclinic for?
spring-petclinic is for developers who want a sample to run locally and test against H2, MySQL or PostgreSQL. Its test applications can be run from an IDE for quick feedback during development.
What license does spring-petclinic use?
spring-petclinic uses the Apache-2.0 license. Apache-2.0 is the SPDX identifier recorded for the repository.
Code health
Key features of spring-petclinic
- Runs as a Spring Boot application that you start with Maven or Gradle.
- Uses an in-memory H2 database that is populated with data at startup by default.
- Provides MySQL and PostgreSQL setups that are selected through Spring profiles for persistent storage.
- Includes test applications for running in an IDE and integration tests that use Testcontainers for MySQL and Docker Compose for PostgreSQL.
- Builds a container image with the Spring Boot build plugin when a Docker daemon is available.
How spring-projects/spring-petclinic works
Requests enter through web controllers such as src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java, which handle creating and editing owners and pets. The domain classes in the owner package, such as Owner, build on shared entity types in src/main/java/org/springframework/samples/petclinic/model/BaseEntity.java and model/Person.java. Spring Data JPA saves these objects to the database chosen by the active Spring profile, which is H2 by default or MySQL or PostgreSQL when configured. The system package holds system-wide configuration and standalone controllers, and CacheConfiguration sets up caching. Thymeleaf renders the pages that the controllers return.
The codebase has 80 files and 266 symbols in 2 modules, mostly CSS by code size, with the most files in Java. Code health is 8.8 out of 10, rated excellent.
Maintain spring-projects/spring-petclinic?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of spring-projects/spring-petclinic. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask spring-petclinic's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/spring-projects/spring-petclinic?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/spring-projects/spring-petclinic?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/spring-projects/spring-petclinic.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/spring-projects/spring-petclinic?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/spring-projects/spring-petclinic.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/spring-projects/spring-petclinic.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>