Spring Boot Tutorial for Beginners (Java Framework)



Learn Spring Boot in this full course for beginners. Spring Boot is an amazing framework for building Java applications. It makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.

💻 Code: https://github.com/amigoscode/spring-boot-react-fullstack

✏️ Course from Amigoscode.
🔗 Subscribe to Amigoscode YouTube channel: http://bit.ly/2HpF5V8
🔗 Full Stack Spring Boot | React | Postgres Course: http://bit.ly/2NGmUx3
🔗 Visit Amigoscode.com for more courses: http://bit.ly/2JgGW0w
🔗 Follow Amigoscode on Instagram: http://bit.ly/2TSkA9w
🔗 Join Amigoscode Closed Facebook Group: http://bit.ly/2FbuIkx

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://medium.freecodecamp.org

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

48 thoughts on “Spring Boot Tutorial for Beginners (Java Framework)

  1. for 2.4.5 remove the flyway stuff it's not even relevant and add this
    spring:

    datasource:

    driver-class-name: org.postgresql.Driver

    url: jdbc:postgresql://localhost:5432/demodb

    username: postgres

    password: password

    hikari:

    maximum-pool-size: 30

  2. 1:23:10 If you still get error "Failed to configure a DataSource: 'url'" change application.yml to:

    spring:
    datasource:
    driverClassName: org.postgresql.Driver
    url: jdbc:postgresql://localhost:5432/demodb
    username: postgres
    password: password
    pool-size: 30

    And in PostgresDatasource:
    @ConfigurationProperties("spring.datasource")

    And it should work (Spring 2.4.4)

  3. If someone has struggle to follow the "@NotBlank" part at 59:52 → Since Spring Boot 2.3 you will need to add the spring-boot-starter-validation dependency to your pom.xml. implicitly.

    <dependency>

    <groupId>org.springframework.boot</groupId>

    <artifactId>spring-boot-starter-validation</artifactId>

    </dependency>

  4. I haven't used Spring in a couple of years and I would really like to thank you for providing this tutorial. Really came in handy! Also, your voice and pace are on point sir 🙂

  5. Hello, 1 HELP:

    Starting with Boot 2.3, we also need to explicitly add the spring-boot-starter-validation dependency

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-validation</artifactId>
    </dependency>

    By Baeldung…

  6. Someone have this error to? 2021-03-23 01:19:54.684 WARN 8768 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'personController' defined in file

  7. Hi! Great tutorial!

    I would not say it's for beginners, though, having some experience with .NET Core and Docker helped me finish this tutorial.

    Instead of postgres, I used MSSQL because of its management studio tool, which makes it easier to create tables, modify them, .etc.

  8. Awesome tutorial! I just LOVE the calm voice.

    Also when he got started with the REST, for almost 30 minutes straight I was just like "Say whaaaaaaat? That ain't no work, that's fun!"

  9. This is the stupidest video I have never ever seen before you are not saying anything put a music in this video and it will still deliver the same thing damn u so dumb man

  10. my application was not finding the datasource because i had to configure my application.yml file differently. I kept getting this error:
    *************************
    APPLICATION FAILED TO START
    *************************

    Description:

    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    Reason: Failed to determine a suitable driver class

    FIX FOR ME:
    spring:
    datasource:
    url: jdbc:postgresql://localhost:5432/demodb
    username: postgres
    password: password
    pool-size: 30

  11. I appreciate the tutorial, but its made for intermediate coders, not beginners. A lot of the functionality wasnt adressed at all and many functions seem too complex for beginner understanding.

  12. Hmmm, my server does not return the default messages on validation.
    I've seen S.O. mentioned ControllerAdvice, but figure something has changed.
    Using JDK 15 / SpringBootStarterParent 2.4.2
    Overall a good crash course on Springboot that at least helps me see some of the common patterns used.

  13. I get this error, someone has an idea how to solve it?
    'Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.2 from/to central'

  14. shortcuts are sweet for workflow, not when your instructing and things get auto fixed for you — at least a mention of what it did for you would be helpful… its like your driving a truck having a blast hell your even whistling to a tune but everyone behind you on the highway is crashing and having their windshields cracked cus you didn't put the wind cover over your truck bed and rocks are flying out.. not a fun time and it abstracts from the learning

Leave a Reply

Your email address will not be published. Required fields are marked *