Spring Tips: HTMX

preview_player
Показать описание
Hi, Spring fans! HTMX is the progressive hypertext sensation that's sweeping the process of web app creation, and - thanks to a nice integration by Spring community legend Wim Deblauwe, it's easier than ever to use it with Spring Boot and Thymeleaf. And, it's the topic of today's installment!

#java #springboot #html #htmx #http #html5
Рекомендации по теме
Комментарии
Автор

Gotta love Wim Deblauwe!
Hes the best java coder i know!

julesdeblauwe
Автор

Timely! I just tried Spring+Thymeleaf+HTMX for the first time and I hadn't realized there was a Spring Boot HTMX package!

prdoyle
Автор

Great, simple, straight to the point tutorial.

JavierFausLlopis
Автор

Hey Josh, many thanks for the slick demo, any chance you could glue all your recent demos on Authorisation Server, Cloud Gateway Server & Resource Server (MPA web server) together with Thymeleaf & HTMX, something a bit closer to real world scenario? As Thymeleaf and HTMX start to have a few CSRF issues...Cheers

paulfx
Автор

Looks like spring initializer now has htmx dependency. Is that now a prefer way to include in the template file. If so, how do you specify htmx library in the template file using the Springboot's version of htmx library?

TC
Автор

First to comment, Nice to hear you mentioned thymeleaf

martindzeble
Автор

I've just been combining Thymeleaf and HTMX just by adding an attribute like th:hx-delete, rather than th:attribute. Seems to work.

prdoyle
Автор

Thank you very much! I'm also learning thmyeleaf and htmx currently. I just have one question:

Why `th.attr="hx-delete=@{...}"` instead of `th:hx-delete="@{...}"`? Isn't the second one simpler? Or is there a reason?

azmo_
Автор

If you're using htmx why not use something simpler than thymeleaf like mustache?

PlasmaSnake
Автор

skip the ai generated thumbnail it’s off putting

kamalhm-dev
Автор

Does anyone make it works using Native Images?

valdemarjuniorr
Автор

hi. how use REST API with HTMX response JSON not use model or view

hamednikbakht
Автор

Please @Josh can you do a video on how Spring boot handle multiple request at the same time

terteseamos
Автор

How would you deploy such an app? I tried Spring Boot and HTMX for a little side gig but JVM start up time ~7 seconds is just not viable. I tried Spring Native but I ran into some weird issues.

maverickv
Автор

is HTMX new ?? I mean i tried to find a couse in udemy that talks about Spring boot + HTMX but I couldn't find !! ... it seems cool add-on thymeleaf but not sure if good choice to do real projects !

muslehhaj
Автор

what is your first favorite place on internet?

sadiulhakim
Автор

JavaScript is a programming language, while HTMX is more of a structural DSL. The goal of any structural DSL is to simplify the complexity that comes with using a full-fledged programming language. But there's a catch: they can't cover every possible scenario. So, in the end, if you want to handle everything, you still need to learn a programming language.

Take SQL as another example. It's a structural DSL that makes querying data from a database easier. But we soon realize that not every situation can be solved with just a single SQL statement. That's why databases have built-in stored procedures to handle more complex logic. Of course, developers also have the option to implement that logic in other programming languages instead of using stored procedures.

zhilindeng