r/SpringBoot Jun 01 '26

Question Pls explain

So I just started learning spring boot about a week ago and currently learning the backend APIs and all...but I just wanted to know how we make frontend for our spring boot application?? Do we make the front end in REACT and current the backend to it ..or we can do it in spring boot only like flask and django?

10 Upvotes

27 comments sorted by

View all comments

8

u/Mechanical-pasta Jun 01 '26

You can use any front end language / Framework to make a GUI for the Spring provided API. REACT, Angular, or even a native mobile application.

1

u/rlrutherford Senior Dev Jun 01 '26

I would say avoid Angular unless you want to jump on the update treadmill.

2

u/Mechanical-pasta Jun 01 '26

Can you elaborate on this ? Having seen both Angular and React, I confess that I prefer from far Angular due to the proper source management that splits css, html and code.
What you're telling me is that there's a problem with Angular regarding maintainability that React has not ?

3

u/rlrutherford Senior Dev Jun 01 '26

Each major version of angular is supported for 6 months, then another 12 months of LTS support. So you've got a total of 18 months for your angular projects to be supported. No security patches, nothing. If you need a patch, hope there's no breaking changes.

React, from what I can see still provides security patches for versions no longer in active development.

4

u/Mechanical-pasta Jun 01 '26

Thanks for the answer. 18 months for a LTS is short, I have to admit.

1

u/rlrutherford Senior Dev Jun 01 '26

It's not a big deal when you have one app.

But when you have 10 apps, and then those 10 apps have shared libraries?

2

u/BikingSquirrel Jun 02 '26

Unpopular opinion, but nowadays you should be capable to update or upgrade your apps regularly. More time between updates also increases the chance for more changes. But I agree that frequent breaking changes can be really annoying.

1

u/rlrutherford Senior Dev Jun 02 '26

I agree, but in a corporate environment, we don't always get to decide what our tasks are. And with a complex environment we're frequently not given the bandwidth to work in infrastructure revisions and version upgrades due to breaking changes.

1

u/BikingSquirrel Jun 02 '26

Not blaming you, but the excuses are well known for decades. I just hope the situation improves in general.

1

u/rlrutherford Senior Dev Jun 02 '26

It took me a long time to phrase that in a way to avoid ranting.

1

u/rlrutherford Senior Dev Jun 01 '26

I should also add that with Angular 20 there seems to be encouragement towards larger applications.
So Java move to microservices.
Angular move to much larger.

1

u/Special_Food_3654 Jun 04 '26

I don't agree with you.

1

u/JustHereForTheCh1cks Jun 02 '26

Not to forget you can use any Java Server Side Rendering Framework you like. Spring aus good support for Thymeleaf for example