Forms Made SIMPLE: How to Use Forms in Spring Boot (No JavaScript)

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • In this tutorial I show you how to submit forms using HTML and Spring Boot, with a little CSS for styling.
    We're not using JavaScript in this one to demonstrate the simplest way I know to collect data using forms in Spring Boot.
    Links
    🔗 Source Code: github.com/devtiro/spring-boo...
    🔗 @RequestBody Docs: docs.spring.io/spring-framewo...
    🔗@ModelAttribute Docs: docs.spring.io/spring-framewo...
    Connect With Devtiro
    🌐 Website: www.devtiro.com
    🐥 Twitter: / devtiro
    📸 Instagram: / devtiro
    Timestamps
    0:00 Intro
    0:16 Project Overview
    2:00 Implement Contact Endpoint
    4:18 Test Form Redirect
    4:55 Access Data as a Map
    5:52 Test Access Data as Map
    6:26 Access Data as an Object
    8:11 Test Access Data as an Object
    8:58 Validation
    9:57 Test Form Validation
    10:40 Handle BindException
    23:37 Next Up

Komentáře • 12

  • @simanchalagamer4562

    It was very helpful.Keep going sir

  • @lovemishra8137
    @lovemishra8137 Před 17 dny

    Simple and clear

  • @omaradrian80
    @omaradrian80 Před rokem

    Great!!! Keep doing your good work!!

    • @devtiro
      @devtiro  Před rokem +1

      Thank you! I'll do my best 💪

  • @ananyshrivastava9181
    @ananyshrivastava9181 Před rokem

    best content for springboot on entire youtube

    • @devtiro
      @devtiro  Před rokem +1

      That means a lot! Thank you so much 🙏

  • @BhaaRaThh
    @BhaaRaThh Před rokem

    I always love your content.

    • @devtiro
      @devtiro  Před rokem

      I'm glad to have you with us 🫡

  • @andrelong7230
    @andrelong7230 Před měsícem

    You code did not work the first but the very next day it worked. I don't know why; I suspect that my form page was being cached without my knowledge. Do you have any videos on Spring Boot MVC applications with a real database like Postgres or MySQL?

  • @abulsyed4851
    @abulsyed4851 Před rokem +1

    Could you make a video on how we should do spring boot testing. And the types of testing we should do.

    • @devtiro
      @devtiro  Před rokem

      I love this! Absolutely. I'll add it to the backlog 🫡

    • @arnabchowdhury4892
      @arnabchowdhury4892 Před 10 měsíci

      @@devtiro Please make video on how to improve the spring boot application while reading from message queue like active mq