r/SpringBoot • • Apr 18 '26

Discussion Learning to implement Clean Architecture in Spring boot

Hello. I wanted to try and implement uncle Bob's Clean Architecture in SpringBoot.

Here's the github repo.

I need some feedback about it. Thanks again

9 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Yassine_kharrat Apr 20 '26

Can you tell me when should we divide project into separate maven modules?
Also, Can't controllers be part of the presentation layer? I went with that because the app is a REST API, and if I wanted to change it to CLI tool, I'd have to change the presentation layer (replace controllers with corresponding classes for CLI)

ps: thanks for the archunit tip. Didn't know such thing existed