Skip to content

Commit 4d04015

Browse files
author
Ivan Franchin
committed
Remove Actuator dependency
1 parent cd5a16e commit 4d04015

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

book-service/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ task integrationTest(type: Test) {
6464
}
6565

6666
dependencies {
67-
implementation 'org.springframework.boot:spring-boot-starter-actuator'
6867
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
6968
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
7069
implementation 'org.springframework.boot:spring-boot-starter-validation'

book-service/src/main/java/com/ivanfranchin/bookservice/config/SwaggerConfig.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@ GroupedOpenApi customApi() {
2929
return GroupedOpenApi.builder().group("api").pathsToMatch("/api/**").build();
3030
}
3131

32-
@Bean
33-
GroupedOpenApi actuatorApi() {
34-
return GroupedOpenApi.builder().group("actuator").pathsToMatch("/actuator/**").build();
35-
}
36-
3732
public static final String BEARER_KEY_SECURITY_SCHEME = "bearer-key";
3833
}

book-service/src/main/java/com/ivanfranchin/bookservice/security/SecurityConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
2020
return http
2121
.authorizeHttpRequests(authorizeHttpRequests -> authorizeHttpRequests
2222
.requestMatchers(HttpMethod.GET, "/api/books", "/api/books/**").permitAll()
23-
.requestMatchers(HttpMethod.GET, "/actuator/**").permitAll()
2423
.requestMatchers("/api/books", "/api/books/**").hasRole(MANAGE_BOOKS)
2524
.requestMatchers("/swagger-ui.html", "/swagger-ui/**", "/v3/api-docs", "/v3/api-docs/**").permitAll()
2625
.anyRequest().authenticated())

book-service/src/main/resources/application.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ jwt:
1818
resource-id: ${spring.application.name}
1919
principal-attribute: preferred_username
2020

21-
management:
22-
endpoints:
23-
web:
24-
exposure.include: beans, env, health, info, metrics, mappings
25-
endpoint:
26-
health:
27-
show-details: always
28-
2921
springdoc:
30-
show-actuator: true
3122
swagger-ui:
32-
groups-order: DESC
3323
disable-swagger-default-url: true

0 commit comments

Comments
 (0)