Gary' Blog
  • Home
  • Github
  • English
    English中文 (中国)

Tag: spring boot

Java Image base64 to Spring Boot MultipartFile

2024-01-18 2.1k Technical base64, spring boot Leave a Comment
Java code: package com.awaimai; import cn.hutool.core.lang.Assert; import lombok.extern.slf4j.Slf4j; import org.apache.tika.mime.MimeTypeException; import org.apache.tika.mime.MimeTypes; import org.springframework.mock.web.MockMultipartFile; import org.springframework.web.multipart.MultipartFile; import java.ut…

Spring Boot + Thymeleaf form validation error not displaying

2022-11-28 1.4k Uncategorized spring boot, Thymeleaf Leave a Comment
Check these by these steps. Make sure BindingResult just follows up with the object variable @PostMapping("/save") public String save(@Valid Product product, BindingResult bindingResult, RedirectAttributes attributes) { // th:object = "${product}" } Here, it follows up producrt object. use @…

Hot reload Spring Boot Freemarker and Thymeleaf template on Idea IDE

2022-04-30 1.7k Uncategorized Freemarker, spring boot, Thymeleaf Leave a Comment
First of all, import Spring Boot devtools dependency to pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> Disable cache for template, if you use Freemarker templa…

Tag Cloud

American Companies ASR Authentication Azure beego Careers Cloudflare Crab hunting cURL Debian Email ESXi ESXi 8 FastAPi ffmpeg Fortune 500 Jobs Kafka Keycloak LinkedIn MacOS MySQL OpenAI Plugin Python RDP Remote Connect Reverse Proxy RSS rustdesk Samba Screen Sharing sklean sleep mode SMTP spring boot ssh Thymeleaf tunnel Ubuntu VNC Windo Windows WordPress ZeroTrust
Theme: Maizi. Powered by WordPress.