From e8cdaa4977ec13f73aef47ed1caa734fa60e84d8 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Thu, 12 Jan 2023 18:03:48 +0100 Subject: [PATCH] GH-115 - Polish up example. Upgraded to Spring Boot 3.0.1. Added starters for web and added configuration to expose applicationmodules actuator. Tweak logs to follow Boot's default configuration. Removed obsolete milestone repository. --- spring-modulith-example/pom.xml | 29 +++++++++++-------- .../src/main/resources/application.properties | 4 +-- .../src/main/resources/logback.xml | 23 +++++++-------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/spring-modulith-example/pom.xml b/spring-modulith-example/pom.xml index 97d50712..ff5c364f 100644 --- a/spring-modulith-example/pom.xml +++ b/spring-modulith-example/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.0 + 3.0.1 @@ -52,14 +52,19 @@ org.springframework.experimental spring-modulith-starter-jpa - + + + org.springframework.boot + spring-boot-starter-web + + - + org.springframework.boot spring-boot-starter-actuator - + org.springframework.experimental spring-modulith-actuator @@ -111,21 +116,21 @@ - spring-milestone - https://repo.spring.io/milestone - + spring-snapshot + https://repo.spring.io/snapshot + false - + - spring-milestone - https://repo.spring.io/milestone - + spring-snapshot + https://repo.spring.io/snapshot + false - + diff --git a/spring-modulith-example/src/main/resources/application.properties b/spring-modulith-example/src/main/resources/application.properties index f3767c76..732d0a09 100644 --- a/spring-modulith-example/src/main/resources/application.properties +++ b/spring-modulith-example/src/main/resources/application.properties @@ -1,5 +1,3 @@ -spring.jackson.constructor-detector=use-properties-based - spring.jpa.show-sql=true -logging.level.org.springframework.modulith=info \ No newline at end of file +management.endpoints.web.exposure.include=health,applicationmodules diff --git a/spring-modulith-example/src/main/resources/logback.xml b/spring-modulith-example/src/main/resources/logback.xml index c8ee1330..8b48a86a 100644 --- a/spring-modulith-example/src/main/resources/logback.xml +++ b/spring-modulith-example/src/main/resources/logback.xml @@ -1,17 +1,14 @@ - - - - %d %5p %40.40c:%4L - %m%n - - - - - - - - + + + + + + - + + + + \ No newline at end of file