r/learnjava • u/jdrc8 • Aug 07 '21
Do you know of any good Spring Boot sample projects?
I'm looking for the source of a clean Spring Boot application so I can study the code, patterns used, etc. The closest to that I could get is this JHipster sample application. I've learned some things from it, but it's quite small, so not a lot to see.
I'm honestly amazed by the lack of results that come up when I search "Spring Boot sample app", as most frameworks always have samples. Why could this be? Maybe I'm looking in the wrong place?
7
Aug 07 '21 edited Aug 07 '21
I had this gitfront page set up for employers with the Spring project of my final year project. I'm a beginner by all means but this is a full fledged backend of a functioning application with a lot of standard CRUD functionality and a JWT filter, so it could be of some help. Here's the read only repo link:
https://gitfront.io/r/mozein15/b6ac7047e9707f44f16133f4485b5d370ba52c66/FYPBackend/
One caveat: we use two separate tables for users which isn't supported by Spring security by default and requires some workarounds, just keep in mind that the userdetailsservice isn't standard.
If you have any questions about the project I'd be happy to help! Also, if you have any pointers/corrections or notice bad practice in there, would love to hear about it as well
Edit: I've also written some reports about the backend when I submitted the project, I can dig those up if you want them to get a better idea of the application or project structure
1
Aug 08 '21
Yes pls. I’d love to see those reports
2
Aug 08 '21
Hopefully this helps clarify things and isn't confusing, feel free to ask me if you're uncertain about something:
https://drive.google.com/file/d/1QpboWAdQMys7Ko0XEri1ZJBFMtNbiLYm/view?usp=drivesdk
1
1
Aug 08 '21
Here you have a pretty standard organization with controller/service/repository layers: https://github.com/sake92/cakum-pakum
It uses JPA, Lombok, MapStruct, validation, swagger3 etc. :)
14
u/[deleted] Aug 07 '21
Check out Spring Pet Clinic Community, which has example projects using Spring Boot with various technology combinations.