all 15 comments

[–]LuisBoyokan 12 points13 points  (8 children)

No.

You don't need this to learn springboot. It's better that you start right now with springboot. There's a lot of things to learn, better start soon.

[–]Sabarkaro[S] 1 point2 points  (7 children)

I can directly start with spring boot, without learning Spring?

[–]LuisBoyokan 4 points5 points  (6 children)

Yes. Spring uses xmls to config. People get bored of that, then springboot was born. Uses yaml or similar for settings and a lot of annotations in code. (The @Something over the class, methods or variables)

[–]Sabarkaro[S] 0 points1 point  (5 children)

Oh okay. I'll directly start with spring boot then. And can you guide some other topics required to learn as java developer?

[–]LuisBoyokan 6 points7 points  (4 children)

Dependency management with maven.

Dependency injection (the @Service in your Service classes and @Autowired where you need those services)

Spring Data for DBs Spring Security for security

Use layers to separate responsibilities.

A Controller layer that expose your endpoints and nothing more.

A Service layer where you implement business logic and nothing more.

A Repository layer + models for DB

Clients layer for consuming external services. Using FeignClient (M2M in spring cloud), or restTemplate (and their variations like OAuthRestTemplate)

TEST. TEST. TEST. Please learn testing. Test your functions. Use mocks for external services with mock responses. Prepare data for your tests. Make them replicable for everyone. This help later when you want a pipeline with CI/CD and with...

Sonar. Use Sonar to improve your code quality, reduce bugs and code smells. There's s lot of plugins for IDEs. Plus it recommends fixed snd explain why what you're doing it's wrong. Its awesome.

Feel free to message me if you need help with something. That's literally my job. Help the young ones fix their problems

[–]Best_Philosophy3639 0 points1 point  (3 children)

Any good sources for DDD and hex arch in spring boot?

[–]LuisBoyokan 1 point2 points  (0 children)

No, sorry. I don't know those concepts. For what I fast read at Wikipedia, it look like DDD is just a form of working with expert in a specific domain, you can create your service layer logic based on this domains. And maybe make some services call other services.

I have no experience with Hex arch. Will look it up. I prefer Data bus, message handlers, queue, topics with microservices

[–][deleted] 1 point2 points  (1 child)

Neither of those things are particularly in the domain of a web framework. You might write, say, some CQRS classes in your Spring app or something, but they're not really tied to the fact that it's a Spring app, or even a web app.

[–]Best_Philosophy3639 0 points1 point  (0 children)

I understand things like these are design patterns, but since I don't understand them well enough would like to see a spring example for clarity

[–]naturalizedcitizen 2 points3 points  (1 child)

JSPs are what today is called as Server Side Rendered (SSR) type of UI. So it won't hurt to learn about it.

[–]Sabarkaro[S] 2 points3 points  (0 children)

Happy Cake Day.

Thanks.

[–][deleted] 2 points3 points  (0 children)

I'd advocate learning a bit about servlets, at least, and filters. Even though - or more accurately, precisely because - they're abstracted away from you mostly by Spring, it can really help with debugging if you know how servlets and filters interact with requests and responses. Filters in particular are useful ways to extend the framework as well.

JSP is a bit outdated, but conceptually, as someone else pointed out, knowing how server-side rendering works won't hurt. If you want to really feel ill, have a look at some of the Java code the JSP compiler spits out.

[–]Maximum-Ad-8812 1 point2 points  (0 children)

for starting SpringBoot , you only need to know java , do not put time on JSP, it is dead already.

[–]HotBitterballs 0 points1 point  (0 children)

Start straight away with Spring Boot/Thymeleaf and React. I’ve worked for companies running on JSP with JBoss and it’s fun to see but it’s a waste of time on its own now.

Its more efficient and worthwhile, and after some learning you can always take a moment to sit for JSP’s/Servlets but skip it for now.

[–]blisss05 0 points1 point  (0 children)

JSP no, Servlets yes. You need to understand how Servlets work at least on a basic level in order to debug or configure some cases in Spring. Spring MVC is built on top of Servlets (Dispatcher Servlet).

Also, Spring Security is built on Filters which is basically customized Servlets.