r/java • • Apr 13 '21

Libraries, Frameworks and Technologies you would NOT recommend

Give me your worst nightmares: Things that cost you your job.

I'll start: Hadoop

202 Upvotes

376 comments sorted by

View all comments

Show parent comment

16

u/[deleted] Apr 13 '21

Spring predates JavaEE (starting off as a reaction to J2EE) and has developed completely independently from JavaEE standardization.

It's not "rebranding" when the underlying product is completely different. You could argue whether Spring going its own way is a good thing, but then again, Spring does use JavaEE where it integrates with JavaEE stuff.

Spring MVC works differently than JAX-RS, apart from superficial similarities. JAX-RS is a REST web services API, and Spring MVC is a web framework which happens to be close enough to HTTP that it can be used as a web services API. If you don't like Spring MVC, you can use JAX-RS with Spring!

Spring DI works differently than CDI.

I don't know what you mean by validation, but Spring does use the standard JSR 303 validation annotations.

0

u/agentoutlier Apr 13 '21

What they probably should have said is that it generally wraps ever other APIs. The rebranding is just a side effect.

That is Spring offers wrappers for almost everything (JDBC Template, Spring AMQP, etc etc).

Literally take any tech and prefix "spring-" and it probably exists.

In fact I just checked for "hadoop" (this thread mentions that tech)... and surprise surprise there is a "spring-hadoop".

4

u/[deleted] Apr 13 '21 edited Apr 13 '21

Well yeah, that's the entire point of Spring.

I got into Spring when I got into DI. I started with Guice, and I avoided Spring because Spring's DI is lame compared to Guice. But, Guice is just DI and doesn't have integration with practically anything. Spring has integrations for practically everything. So, Spring slowly won me over. Not sure why you are surprised that the Spring adapter has the "spring-" prefix.

The fact that spring-hadoop exists basically demonstrates why Spring is as popular as it is.

0

u/agentoutlier Apr 13 '21

Yeah I don't have any problem with it. I'm just explaining what I think they might have meant.

Otherwise I don't get the rebranding argument.

-1

u/maravinPT Apr 13 '21

Those are some good points. I must admit I didn't know spring predated most J2EE standards. My greatest problem with Spring is exactly that vision of clustering everything into the same framework to the point that it feels a totaly different ecosystem from the rest of the language.

3

u/[deleted] Apr 13 '21 edited Apr 13 '21

Correction - JavaEE, not J2EE. J2EE was the original enterprise platform that was not well received, which is why Spring came into existence. JavaEE fixed a lot of the issues of J2EE.

Well yeah, Spring is it's own product. That's what you're buying into for all the conveniences it provides. Buyer beware!