Skip to content

Commit 27bc540

Browse files
committed
maven upgrades and exposing the health endpoint
1 parent 35a0c86 commit 27bc540

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎pom.xml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>org.springframework.boot</groupId>
1515
<artifactId>spring-boot-starter-parent</artifactId>
16-
<version>1.3.6.RELEASE</version>
16+
<version>1.4.2.RELEASE</version>
1717
<relativePath /> <!-- lookup parent from repository -->
1818
</parent>
1919

@@ -112,7 +112,7 @@
112112

113113
<!-- overriding Spring Boot -->
114114
<spring-hateoas.version>0.18.0.RELEASE</spring-hateoas.version>
115-
<spring-boot.version>1.3.6.RELEASE</spring-boot.version>
115+
<spring-boot.version>1.4.2.RELEASE</spring-boot.version>
116116

117117
<commons-collections.version>3.2.1</commons-collections.version>
118118
<hibernate.version>5.0.5.Final</hibernate.version>
@@ -124,9 +124,6 @@
124124

125125
<slf4j.version>1.7.13</slf4j.version>
126126

127-
<spring.version>4.2.3.RELEASE</spring.version>
128-
<spring-security.version>4.0.3.RELEASE</spring-security.version>
129-
130127
<!-- Spring related -->
131128
<aspectjweaver.version>1.8.7</aspectjweaver.version>
132129

@@ -154,7 +151,6 @@
154151
<validation-api.version>1.1.0.Final</validation-api.version>
155152

156153
<!-- ops related -->
157-
<tomcat.version>8.0.30</tomcat.version>
158154

159155
<!-- logging -->
160156
<logback.version>1.1.3</logback.version>

‎um-webapp/pom.xml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<groupId>org.springframework.boot</groupId>
6565
<artifactId>spring-boot-starter-web</artifactId>
6666
</dependency>
67+
<dependency>
68+
<groupId>org.springframework.boot</groupId>
69+
<artifactId>spring-boot-starter-actuator</artifactId>
70+
</dependency>
6771

6872
<!-- persistence -->
6973

@@ -73,6 +77,13 @@
7377
<version>1.1</version>
7478
</dependency>
7579

80+
<!-- dev -->
81+
<dependency>
82+
<groupId>org.springframework.boot</groupId>
83+
<artifactId>spring-boot-devtools</artifactId>
84+
<optional>true</optional>
85+
</dependency>
86+
7687
<!-- test scoped -->
7788

7889
<dependency>

‎um-webapp/src/main/java/org/baeldung/um/spring/UmJavaSecurityConfig.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ protected void configure(final HttpSecurity http) throws Exception {
3232
// @formatter:off
3333
http.
3434
authorizeRequests().
35+
antMatchers("/api/health").anonymous().
3536
anyRequest().authenticated().and().
3637
httpBasic().and().
3738
sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
server.port=8082
22
server.contextPath=/um-webapp
33

4-
spring.datasource.validation-query=SELECT 1;
4+
spring.datasource.validation-query=SELECT 1;

0 commit comments

Comments
 (0)