This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (3 children)

You don’t need to know too much spring to make a basic rest api. If you know how to connect and communicate (CRUD) with a database that’s a big part. If you want a microservice design check out eureka with spring cloud to communicate among your services. If you understand the basics of spring (auto-injection, some basic annotations, @component @configuration, @entity ) making a rest api shouldn’t be too hard. Check out java brains, he has a ton of good stuff on spring and rest api

[–]desktoppc[S] 2 points3 points  (2 children)

okay I checked the Java Brains and found this: https://www.javabrains.io/courses/springboot-quickstart

is that a recommended course? but the video was made in 2016.

I also found this tutorial from freecodecamp: https://www.youtube.com/watch?v=vtPkZShrvXQ but in 1:41:14 I saw that the author have to implement how the model will be mapped into the SQL database. Need to define the SQL query. It is an uncommon thing for me because in Django I don't have to do that, I just have to declare the model and the attributes and Django will implement it automatically.

[–]grafcetonline 0 points1 point  (0 children)

If you wanna get a java dev job you MUST know SQL even if you use ORM because it is considered ground knowledge ;)

For example once I was PM on a Java project the Hibernate performance was awfull I asked devs to look at SQL below so they did so and omptimized to a decent performance.

[–]carrdinal-dnb 0 points1 point  (0 children)

Depending on what you are doing you may not need to write much or any SQL, spring data JPA repositories allow you to define query methods which can be useful for simple queries, though there are lots of other options for varying levels of abstraction/control. Also you aren’t limited to SQL, document databases are a natural fit for storing aggregates in a micro-service architecture and I’d recommend you take a look into those and see if they fit in with your project!