How saishkulkarni/book-my-ticket-springboot-thymeleaf works
BookMyTicket is a Spring MVC ticket-booking and theater-management application. Users browse shows, select seats, and proceed through booking confirmation; administrators manage theaters, screens, seats, movies, and shows. The controller delegates requests to a broad service layer, which coordinates persistence and short-lived Redis data. The excerpts show the booking and administration entry points, but do not expose the full payment, email, or media-upload integrations, so those relationships are not detailed here.
Main entry points: repository JPA repositories · UserController.java Web controller · UserServiceImpl.java Application workflows · RedisService.java Cache interface
Components 12
Web interface
- Web controller
src/main/java/com/jsp/book/controller/UserController.java - Page templates
src/main/resources/templates
Booking domain
- Application workflows
src/main/java/com/jsp/book/service/UserServiceImpl.java - Booking records
src/main/java/com/jsp/book/entity/BookedTicket.java - Movies and shows
src/main/java/com/jsp/book/entity/Show.java - Theaters and screens
src/main/java/com/jsp/book/entity/Theater.java - Seats and availability
src/main/java/com/jsp/book/entity/ShowSeat.java - User accounts
src/main/java/com/jsp/book/entity/User.java
Persistence and cache
- JPA repositories
src/main/java/com/jsp/book/repository - Redis cache
src/main/java/com/jsp/book/service/RedisServiceImpl.java
Application services
- Cache interface
src/main/java/com/jsp/book/service/RedisService.java
Other components
- User or admin
Connections 10
- User or admin → Web controller: submits requests
src/main/java/com/jsp/book/controller/UserController.java - Web controller → Application workflows: delegates workflows
src/main/java/com/jsp/book/controller/UserController.java - Web controller → Page templates: selects views
src/main/java/com/jsp/book/controller/UserController.java - Application workflows → JPA repositories: reads and writes
src/main/java/com/jsp/book/service/UserServiceImpl.java - Application workflows → Cache interface: uses cache operations
src/main/java/com/jsp/book/service/UserServiceImpl.java - Cache interface → Redis cache: implemented by
src/main/java/com/jsp/book/service/RedisServiceImpl.java - JPA repositories → Movies and shows: persists show data
src/main/java/com/jsp/book/repository/ShowRepository.java - JPA repositories → Seats and availability: persists seat data
src/main/java/com/jsp/book/repository/ShowSeatRepository.java - JPA repositories → User accounts: persists users
src/main/java/com/jsp/book/repository/UserRepository.java - JPA repositories → Theaters and screens: queries screens
src/main/java/com/jsp/book/repository/SeatRepository.java