From 71aa9b98ca612ee06b7ccf28949c91f3cc453566 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 21 Jan 2020 20:15:06 +0100 Subject: [PATCH] WIP --- pom.xml | 6 ++++++ src/main/java/de/juplo/demo/Form.java | 6 ++++-- src/main/resources/templates/form.html | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 982eb2f..826a489 100644 --- a/pom.xml +++ b/pom.xml @@ -43,6 +43,12 @@ io.projectreactor reactor-test test + + + + org.springframework.boot + spring-boot-devtools + true diff --git a/src/main/java/de/juplo/demo/Form.java b/src/main/java/de/juplo/demo/Form.java index 382c335..7dceac3 100644 --- a/src/main/java/de/juplo/demo/Form.java +++ b/src/main/java/de/juplo/demo/Form.java @@ -1,7 +1,9 @@ package de.juplo.demo; +import java.util.HashMap; import java.util.Map; +import java.util.TreeMap; /** @@ -10,8 +12,8 @@ import java.util.Map; */ public class Form { - Map> cards; - Map row; + Map> cards = new TreeMap<>(); + Map row = new HashMap<>(); public Map> getCards() diff --git a/src/main/resources/templates/form.html b/src/main/resources/templates/form.html index 586a812..b1f53d8 100644 --- a/src/main/resources/templates/form.html +++ b/src/main/resources/templates/form.html @@ -12,11 +12,11 @@
-
+

Card #X

-
+
-- 2.20.1