Skip to content

Commit e8cdaa4

Browse files
committed
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.
1 parent 98eeb28 commit e8cdaa4

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

spring-modulith-example/pom.xml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.0.0</version>
8+
<version>3.0.1</version>
99
<relativePath />
1010
</parent>
1111

@@ -52,14 +52,19 @@
5252
<groupId>org.springframework.experimental</groupId>
5353
<artifactId>spring-modulith-starter-jpa</artifactId>
5454
</dependency>
55-
55+
56+
<dependency>
57+
<groupId>org.springframework.boot</groupId>
58+
<artifactId>spring-boot-starter-web</artifactId>
59+
</dependency>
60+
5661
<!-- Actuator -->
57-
62+
5863
<dependency>
5964
<groupId>org.springframework.boot</groupId>
6065
<artifactId>spring-boot-starter-actuator</artifactId>
6166
</dependency>
62-
67+
6368
<dependency>
6469
<groupId>org.springframework.experimental</groupId>
6570
<artifactId>spring-modulith-actuator</artifactId>
@@ -111,21 +116,21 @@
111116

112117
<repositories>
113118
<repository>
114-
<id>spring-milestone</id>
115-
<url>https://repo.spring.io/milestone</url>
116-
<snapshots>
119+
<id>spring-snapshot</id>
120+
<url>https://repo.spring.io/snapshot</url>
121+
<releases>
117122
<enabled>false</enabled>
118-
</snapshots>
123+
</releases>
119124
</repository>
120125
</repositories>
121126

122127
<pluginRepositories>
123128
<pluginRepository>
124-
<id>spring-milestone</id>
125-
<url>https://repo.spring.io/milestone</url>
126-
<snapshots>
129+
<id>spring-snapshot</id>
130+
<url>https://repo.spring.io/snapshot</url>
131+
<releases>
127132
<enabled>false</enabled>
128-
</snapshots>
133+
</releases>
129134
</pluginRepository>
130135
</pluginRepositories>
131136
</project>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
spring.jackson.constructor-detector=use-properties-based
2-
31
spring.jpa.show-sql=true
42

5-
logging.level.org.springframework.modulith=info
3+
management.endpoints.web.exposure.include=health,applicationmodules
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<configuration>
3-
4-
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
5-
<encoder>
6-
<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
7-
</encoder>
8-
</appender>
9-
10-
<logger name="org.springframework.modulith" level="info" />
11-
<logger name="example" level="info" />
12-
13-
<root level="error">
14-
<appender-ref ref="console" />
3+
4+
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
5+
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
6+
7+
<root level="INFO">
8+
<appender-ref ref="CONSOLE" />
159
</root>
16-
10+
11+
<logger name="org.springframework.modulith" level="DEBUG"/>
12+
<logger name="example" level="INFO" />
13+
1714
</configuration>

0 commit comments

Comments
 (0)