From 68fb7acacf993cd5f505a625dadbf3baf39553ae Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 1 Feb 2023 10:37:16 +0800 Subject: [PATCH 1/6] Update devcontainer.json publisher id of vscode-boot-dev-pack has been changed from `pivotal` to `vmware`. --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 83e227add..a732481a5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,7 +21,7 @@ "extensions": [ "vscjava.vscode-java-pack", "redhat.vscode-xml", - "pivotal.vscode-boot-dev-pack", + "vmware.vscode-boot-dev-pack", "mhutchie.git-graph" ], "forwardPorts": [8080], From 5ceba6d95c2bd0dc68d6bbd9d2bc7749b9aa15fe Mon Sep 17 00:00:00 2001 From: Tugdual Grall Date: Sat, 4 Mar 2023 14:45:18 +0100 Subject: [PATCH 2/6] issue #1176 codespaces badged --- readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 4cd576eac..869e2e943 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,9 @@ # Spring PetClinic Sample Application [![Build Status](https://github.com/spring-projects/spring-petclinic/actions/workflows/maven-build.yml/badge.svg)](https://github.com/spring-projects/spring-petclinic/actions/workflows/maven-build.yml) -[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/spring-projects/spring-petclinic) +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/spring-projects/spring-petclinic) [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=7517918) + + + ## Understanding the Spring Petclinic application with a few diagrams See the presentation here From dd54a40501e73316006792f7df82a244ab811197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Sun, 22 Jan 2023 18:27:38 +0800 Subject: [PATCH 3/6] Create .gitattributes fixes #1149 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..4fa96dfe9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +mvnw text eol=lf From bac74f7a99da7f4c7115d4611d470fdb03add5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Mon, 23 Jan 2023 01:58:14 +0800 Subject: [PATCH 4/6] Update .gitattributes If I won't keep *.java file as LF newline, I can't run app because I can't pass "io.spring.javaformat:spring-javaformat-maven-plugin:0.0.31:validate" goal when I mount files into container. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 4fa96dfe9..21de586dd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ mvnw text eol=lf +*.java text eol=lf From 2ceb8c16fd8517846f215c0138fc3923120deaba Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 10 Mar 2023 08:04:18 +0000 Subject: [PATCH 5/6] Bump Spring Boot to 3.0.4 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 67d56ca12..4dabe3ce5 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.2 + 3.0.4 petclinic From cc4667122d4f06946f809389762a1a39b3dd1a41 Mon Sep 17 00:00:00 2001 From: Duncan Casteleyn <10881109+DuncanCasteleyn@users.noreply.github.com> Date: Mon, 2 Jan 2023 22:54:46 +0100 Subject: [PATCH 6/6] Resource bundle not included in native image --- .../samples/petclinic/PetClinicRuntimeHints.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java b/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java index f9ab1f51a..2ac7e02e9 100644 --- a/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java +++ b/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java @@ -24,6 +24,8 @@ public class PetClinicRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) { hints.resources().registerPattern("db/*"); // https://github.com/spring-projects/spring-boot/issues/32654 + hints.resources().registerPattern("messages/*"); + hints.resources().registerPattern("META-INF/resources/webjars/*"); } }