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: https://github.com/devtiro/spring-boo...
🔗 @RequestBody Docs: https://docs.spring.io/spring-framewo...
🔗@ModelAttribute Docs: https://docs.spring.io/spring-framewo...
Connect With Devtiro
🌐 Website: https://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
Смотрите видео Forms Made SIMPLE: How to Use Forms in Spring Boot (No JavaScript) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Devtiro 27 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,287 раз и оно понравилось 72 людям.