r/javahelp • • Jun 07 '21

Codeless How to master spring?

I already know spring and spring boot adequately well I'd say. I learned it by simply diving into it with random online tutorials and because I needed it for work (3 years of experience).

However I'm looking to hone my skills further. Is there any clear way to do this? (Aside from grinding through the docs?)

30 Upvotes

10 comments sorted by

•

u/AutoModerator Jun 07 '21

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

22

u/lunkdjedi Jun 07 '21

I remember when it clicked for me, back in the spring 2 days, when I found the javadoc page for BeanFactory interface.

Read it, read it closely. Read it and kick back and think deeply, then revisit it about once a year.

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/BeanFactory.html

The order of initialization, the realization of the life cycle, it was a monumental moment for me.

Enjoy!

11

u/dengineering1 Jun 07 '21

I created a course (free) that explains how to create a series of microservices (and goes over design concepts, testing, deploying, monitoring, etc...) here
https://bullyrooks.com/index.php/course/spring-with-kubernetes/

I'd be interested in hearing your feedback.

2

u/Mammoth-Brilliant303 Jun 07 '21

I just went through a couple pages of this course and I really like what you've done here. Rare to see end-to-end concise, brief, course on this topic.

1

u/dengineering1 Jun 07 '21

Awesome. Thanks for the feedback. My goal was to build something E2E and show patterns and how to apply them in a 'real world' example. So many tutorials 'break' once you try to do more than they are explaining.

Please spread the word. Trying to get my website off the ground.

2

u/m_c0d3 Jun 08 '21

Personally, I'd prefer the ordering reversed. First thing I see should be the starting point.

1

u/strikefreedompilot Jun 07 '21

Thanks for the informative write up. Is there a github link? I could not find one.

1

u/Background-Lab5694 Jun 07 '21

did you try the "pro spring X" series? from apress. they explain quite well all the spring ecosystem. starting with the beanfactory interface.

good luck.

1

u/Viper-10 Jun 08 '21

I understand this answer should be a separate question but a short answer to this would help or I'll post a new well drafted question later, I like or prefer java over python and javascript, I just learnt the basics of spring and spring boot, and it's very complicated to design web projects. Although I like the transparency of spring where we actually know how things work and get a full understanding of how it works internally, is it used now in companies. It seems to be a tedious process so it would be nice if I could get to know about the scope of spring and it's future, because I love it but I'm a bit afraid that I might be learning something that might get outdated soon. I plan to learn cloud (AWS) with the same in the near future.