The Spring Petclinic is the canonical reference sample application built with Spring Boot and Thymeleaf, demonstrating best practices in building Spring-based web applications; forks also exist showcasing implementations with modern architectures like microservices, reactive stacks, and AI integrations. In its default configuration, Petclinic uses an in-memory database (H2) which gets populated at startup with data. The h2 console is exposed and it is possible to inspect the content of the database using the jdbc:h2:mem:<uuid> URL. The UUID is printed at startup to the console. One of the best parts about working on the Spring Petclinic application is that we have the opportunity to work in direct contact with many Open Source projects.

Features

  • Built using Spring Boot and Thymeleaf for rapid setup
  • Demonstrates clean MVC architecture with layered services
  • Covers fundamental concepts like configuration, caching, and data binding
  • Forked versions showcase modern enhancements (microservices, LangChain, AI chatbots)
  • Ideal for learning Spring ecosystem best practices
  • Community-driven with active documentation and variant previews

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Spring PetClinic

Spring PetClinic Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Spring PetClinic!

Additional Project Details

Programming Language

Java

Related Categories

Java Libraries

Registered

2025-08-08