Spring Boot: Tutorials

Online resources for learning Spring Boot

Baeldung.com

The site Baeldung.com has many tutorials related to Spring and Spring Boot.

Many of these have their source code in one giant repo that can be found here:

However, beware! There are a few things you should know about that repo.

It may appear that each of the subdirectories has stand-alone code for a single tutorial. That’s not strictly true. There are some things that the code in each of those subdirectories depends on that are in the giant mega-repo.

So, it isn’t as simple as just copying that one directory into another and expecting the code to work.

So, what do you need?

In addition to the subdirectory, e.g. spring-boot-crud for example, you need these files:

mkyong

There is another giant repo of spring boot tutorials here:

It has the same property as the baedlung.com tutorials, that all of them are in one giant repo.

I was successful at running the spring-data-jpa-postgres tutorial described here on a Mac running Postgres by making this change in application.properties:

Comment out:

#spring.datasource.url=jdbc:postgresql://192.168.1.4:5432/postgres

Add:

spring.datasource.url=jdbc:postgresql://localhost:5432/postgres