From 14c1172bf570d6242b925bd4bfc44e23bb27d2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wilmsmann?= Date: Mon, 23 Sep 2024 16:34:58 +0200 Subject: [PATCH] Hotfix release --- pom.xml | 2 +- src/main/java/com/bjoernkw/schematic/IndexController.java | 2 +- src/main/java/com/bjoernkw/schematic/SchematicProperties.java | 4 ++-- src/main/java/com/bjoernkw/schematic/TablesController.java | 2 +- src/main/resources/templates/fragments/header.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 22bef0f..b9c9b40 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.bjoernkw schematic - 0.3.0 + 0.3.1 Schematic Database management UI for Spring Boot https://github.com/BjoernKW/Schematic diff --git a/src/main/java/com/bjoernkw/schematic/IndexController.java b/src/main/java/com/bjoernkw/schematic/IndexController.java index 84b1a84..d46171f 100644 --- a/src/main/java/com/bjoernkw/schematic/IndexController.java +++ b/src/main/java/com/bjoernkw/schematic/IndexController.java @@ -10,7 +10,7 @@ @RequestMapping("/") public class IndexController { - @Value("${schematic.path}") + @Value("${schematic.path:schematic}") private String path; @GetMapping diff --git a/src/main/java/com/bjoernkw/schematic/SchematicProperties.java b/src/main/java/com/bjoernkw/schematic/SchematicProperties.java index 6abd304..91ce7fa 100644 --- a/src/main/java/com/bjoernkw/schematic/SchematicProperties.java +++ b/src/main/java/com/bjoernkw/schematic/SchematicProperties.java @@ -11,9 +11,9 @@ public class SchematicProperties { private String version = getClass().getPackage().getImplementationVersion(); - private String path; + private String path = "schematic"; - private String rootPath; + private String rootPath = "/"; public String getName() { return name; diff --git a/src/main/java/com/bjoernkw/schematic/TablesController.java b/src/main/java/com/bjoernkw/schematic/TablesController.java index 39a54d2..5abd4d7 100644 --- a/src/main/java/com/bjoernkw/schematic/TablesController.java +++ b/src/main/java/com/bjoernkw/schematic/TablesController.java @@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RequestParam; @Controller -@RequestMapping("/${schematic.path}/tables") +@RequestMapping("/${schematic.path:schematic}/tables") public class TablesController { private static final Logger LOGGER = LoggerFactory.getLogger(TablesController.class); diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index 291abd0..9bce0cb 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -6,7 +6,7 @@