BAEL-3016 Thymeleaf Formating Currencies

This commit is contained in:
Marius Catalin Munteanu
2020-04-25 12:23:24 +03:00
parent b26b71567a
commit ef16cf1587
3 changed files with 111 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.baeldung.thymeleaf.currencies;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class CurrenciesController {
@GetMapping(value = "/currency")
public String exchange(
@RequestParam(value = "amount", required = false) String amount,
@RequestParam(value = "amountList", required = false) List amountList,
Locale locale) {
return "currencies/currencies";
}
}