How gtiwari333/spring-boot-real-world-web-application-example works
This is a Spring Boot article-and-comment application with companion email, content-checking, reporting, and trend services. The primary workflow is a user submitting an article (optionally with attachments), followed by automated content review, publication or manual review, and user notification. Readers browse published articles and threaded comments; administrators can review flagged articles. The graph also captures documented security, file, messaging, and auxiliary-service capabilities. Some controllers and integrations were not sampled, so their links are omitted or marked unverified rather than inferred.
Main entry points: web MVC and REST endpoints · ArticleService.java Article service · ArticleReviewResponseService.java Review response handling · CommentService.java Comment service
Components 20
Web and identity
- MVC and REST endpoints
main-app/main-webapp/src/main/java/gt/app/web - Accounts and access control
main-app/main-webapp/src/main/java/gt/app/modules/user
Articles and comments
- Article service
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleService.java - Comment service
main-app/main-webapp/src/main/java/gt/app/modules/article/CommentService.java - Article mapping
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleMapper.java - Attachment storage
main-app/main-webapp/src/main/java/gt/app/modules/file/FileService.java - Article and comment entities
main-app/main-orm/src/main/java/gt/app/domain/Article.java - Application database
Review and notifications
- Content-check dispatch
main-app/main-webapp/src/main/java/gt/app/modules/review/ContentCheckService.java - Content checker
content-checker/content-checker-service/src/main/java/gt/contentchecker/ContentCheckerService.java - Review response handling
main-app/main-webapp/src/main/java/gt/app/modules/review/ArticleReviewResponseService.java - Manual review
main-app/main-webapp/src/main/java/gt/app/web/mvc/ReviewController.java - Live notifications
main-app/main-webapp/src/main/java/gt/app/modules/common/WebsocketHandler.java - Email client
main-app/main-webapp/src/main/java/gt/app/api/EmailClient.java
Companion services
- Email service
email/email-service/src/main/java/gt/mail/modules/email/EmailService.java - ActiveMQ
- Reporting service
main-app/report-service/src/main/java/gt/report/ReportController.java - Trend service
trend/trend-service/src/main/java/gt/trend/web/TrendController.java
Other components
- Reader or author
- Administrator
Connections 23
- Reader or author → MVC and REST endpoints: uses
README.md - Administrator → MVC and REST endpoints: reviews via
main-app/main-webapp/src/main/java/gt/app/web/mvc/ReviewController.java - MVC and REST endpoints → Article service: delegates to
main-app/main-webapp/src/main/java/gt/app/web/mvc/ReviewController.java - MVC and REST endpoints → Comment service: delegates to
- MVC and REST endpoints → Accounts and access control: serves account access
- MVC and REST endpoints → Manual review: routes reviews
- Manual review → Article service: calls
main-app/main-webapp/src/main/java/gt/app/web/mvc/ReviewController.java - Article service → Attachment storage: stores attachments
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleService.java - Article service → Content-check dispatch: requests review
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleService.java - Article service → Article mapping: maps article data
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleService.java - Article service → Application database: reads and writes
main-app/main-webapp/src/main/java/gt/app/modules/article/ArticleService.java - Comment service → Application database: reads and writes
main-app/main-webapp/src/main/java/gt/app/modules/article/CommentService.java - Article and comment entities → Application database: persisted as
- Content-check dispatch → ActiveMQ: dispatches checks
- ActiveMQ → Content checker: delivers requests
README.md - Content checker → ActiveMQ: returns outcomes
README.md - Review response handling → Application database: updates status
main-app/main-webapp/src/main/java/gt/app/modules/review/ArticleReviewResponseService.java - Review response handling → Live notifications: sends updates
main-app/main-webapp/src/main/java/gt/app/modules/review/ArticleReviewResponseService.java - Review response handling → Email client: sends email
main-app/main-webapp/src/main/java/gt/app/modules/review/ArticleReviewResponseService.java - Email client → Email service: calls service
README.md - Review response handling → ActiveMQ: announces publication
main-app/main-webapp/src/main/java/gt/app/modules/review/ArticleReviewResponseService.java - Reporting service → Application database: uses SQL store
README.md - Trend service → Reader or author: provides trends