r/SpringBoot • • Oct 01 '24

Which frontend to use for SpringBoot?

I recently learned backend in SpringBoot and have very little knowledge of the front end, only HTML, CSS, and Javascript(Beginner).
Please let me know which technology I should use for the frontend. What are the frontend technologies used by the industry where they have a backend in SpringBoot?

26 Upvotes

42 comments sorted by

View all comments

17

u/mnbkp Oct 01 '24

The most common approach by far is to simply use SpringBoot to build a rest API and then build a separate React or Angular app that consumes this API.

If you want a more fullstack approach, you can use Hilla to handle the integration between React and SpringBoot for you.

Another approach would be to use a regular template engine (thymeleaf, pebble, freemarker, etc...) combined with Alpine.js and HTMX. This approach is extremely less common but can be much easier if you're not familiar with React/Angular.

1

u/Cr4zyPi3t Oct 02 '24

+1 for Hilla. Currently switching one of my FOSS projects to Hilla, it really combines the strength of a Spring Boot Backend with a React front end while having few drawbacks. Watch out for the next version with Full-Stack Signals, I think that this will be the next big thing.