How gat0sy/gestion_spring_mvc-l3gl2 works
This is a Spring MVC product-and-type management application with server-rendered pages and a separate JSON API. Users list, create, edit, and delete products and types; product forms also load types so a product can reference one. Both entry points delegate to services, which delegate persistence to JPA repositories. The tree includes JSP views and entity paths, but their implementations and application configuration were not sampled, so those links are shown only where supported by the controllers.
Main entry points: ProductController.java Product pages · TypeServiceImpl.java Type service · TypeController.java Type pages · ProductServiceImpl.java Product service
Components 14
Web pages
- Product pages
src/main/java/groupe2/controller/ProductController.java - Type pages
src/main/java/groupe2/controller/TypeController.java - Product JSPs
src/main/webapp/WEB-INF/views - Type JSPs
src/main/webapp/WEB-INF/views
REST API
- Product API
src/main/java/groupe2/rest/ProductRestController.java - Type API
src/main/java/groupe2/rest/TypeRestController.java
Product domain
- Product service
src/main/java/groupe2/service/impl/ProductServiceImpl.java - Product model
src/main/java/groupe2/entity/Product.java
Type domain
- Type service
src/main/java/groupe2/service/impl/TypeServiceImpl.java - Type model
src/main/java/groupe2/entity/Type.java
Persistence
- Product repository
src/main/java/groupe2/repository/impl/ProductRepositoryImpl.java - Type repository
src/main/java/groupe2/repository/impl/TypeRepositoryImpl.java
Other components
- Browser user
- JPA database
Connections 15
- Browser user → Product pages: requests pages
- Browser user → Type pages: requests pages
- Browser user → Product API: sends API requests
- Browser user → Type API: sends API requests
- Product pages → Product service: calls
- Product pages → Type service: loads types
- Product pages → Product JSPs: selects view
- Type pages → Type service: calls
- Type pages → Type JSPs: selects view
- Product API → Product service: calls
- Type API → Type service: calls
- Product service → Product repository: delegates operations
- Type service → Type repository: delegates operations
- Product repository → JPA database: queries and updates
- Type repository → JPA database: queries and updates