Skip to content

Commit

Permalink
Merge pull request #164 from Team-Capple/feat/#157/advancedSpringMonitor
Browse files Browse the repository at this point in the history
[FEAT] 스프링 메트릭 모니터링  설정
  • Loading branch information
jaewonLeeKOR authored Sep 17, 2024
2 parents 3258f73 + e0a0ee7 commit 28ebe10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ dependencies {
// webflux
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
}

dependencyManagement {
Expand Down
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// 경로별 인가 //TODO Role 분리 필요
http
.authorizeHttpRequests((auth) -> auth
.requestMatchers(HttpMethod.GET, "/swagger-ui/**", "/api-docs/**").permitAll()
.requestMatchers(HttpMethod.GET, "/swagger-ui/**", "/api-docs/**", "/actuator", "/actuator/**").permitAll()
.requestMatchers("/members/sign-in","/members/sign-up", "/members/local-sign-in", "/token/**", "/members/email/check", "/members/nickname/check", "/members/email/certification", "/members/email/certification/check").permitAll()
.requestMatchers("/admin/**", "/members/email/whitelist/register").hasRole(Role.ROLE_ADMIN.getName())
.requestMatchers("/answers","/answers/**").authenticated()
Expand Down

0 comments on commit 28ebe10

Please sign in to comment.