Spring Training in chennai Private individual2 weeks ago Services Chuka 19 views
If you are looking for reasons to learn Java Spring Framework, read my answer ad go for it….
If you are a beginner and quite a core java fan, you will always feel why should I learn a framework to do a job when the same thing can be done by plane java. I can write any algo using java. lang. I can even write a server using socket programming. So why the hell should I learn a new framework which is just a layer on top of what I already know or I am actually interested in.
Well, the logic behind the framework is to reduce the boilerplate code you write to do any job and you should only concentrate on writing business logic. Now, what is boilerplate code you may ask?
Well, think about how you connect to the database to fetch any data. Getting data source from JNDI, getting a connection from it, creating a query, executing it, converting results into java object and closing the connection. This code will take at least 10–15 lines of your codebase. Now, what if I tell you that you can do this by writing a single line using spring data. (Yes you can reduce the line of code using JPA but you will have to choose some JPA provider among hibernating, eclipse TopLink, etc which are nothing but frameworks. So why not learn a single framework like spring data rather than individual JPA providers)
In this modern world, people need programmers who can write applications as fast as it is possible. If you are going to waste 80% of your time writing boilerplate code, nobody will hire you.