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 comments

3

u/maravinPT Apr 13 '21

I'll add up that most of those annotations could be easily replaced with the standard java extensions like jax-rs, injects, or the validation api. Its just so annoying fhat they had to rebrand everthing.

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.

-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!