Skip to content

Commit

Permalink
feat/JNU-econovation#206 : Actuator 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangdaesun committed May 3, 2024
1 parent f030286 commit 926df74
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.gaebaljip.exceed.config;

import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ActuatorConfig {
@Bean
public InMemoryHttpTraceRepository httpExchangeRepository() {
return new InMemoryHttpTraceRepository();
}
}
15 changes: 14 additions & 1 deletion BE/exceed/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,17 @@ springdoc:
default-consumes-media-type: application/json
default-produces-media-type: application/json

ableAutoComplete: true
ableAutoComplete: true

management:
server:
port: 8081
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: "*"
exclude: "env, beans"

17 changes: 16 additions & 1 deletion BE/exceed/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,19 @@ springdoc:
default-consumes-media-type: application/json
default-produces-media-type: application/json

ableAutoComplete: true

ableAutoComplete: true
# Actuator

management:
server:
port: 8081
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: "*"
exclude: "env, beans"

0 comments on commit 926df74

Please sign in to comment.