repowisespring-projects/spring-petclinic

Architecture of spring-projects/spring-petclinic

spring-projects/spring-petclinic is 80 source files holding 266 symbols across 2 modules, written mainly in Java, Dockerfile. The largest module is src, with 57 files, and 21 files are entry points into the dependency graph.

How spring-petclinic fits together

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.

Largest modules

  • src: 57 files and 2,844 lines of code
  • .devcontainer: 1 file and 11 lines of code

Languages

By file count: Java 50 files, Dockerfile 1 file.

Documentation

Repowise documents spring-petclinic in 46 pages generated from the source, 7 of them written explanations of the repository and its modules. Module guides include:

  • src/main/java/org/springframework/samples/petclinic/owner: Owner and Pet Web Flow
  • src/main/java/org/springframework/samples/petclinic: Petclinic Application and Models
  • src/main/java/org/springframework/samples/petclinic/system: System Configuration and Controllers

More on spring-petclinic: summary and FAQ, codebase overview, code health.