Skip to content

Commit

Permalink
[#86] SpringBoot Actuator ์ถ”๊ฐ€ (#88)
Browse files Browse the repository at this point in the history
* add: actuator ์˜์กด์„ฑ ์ถ”๊ฐ€

* config: ์‹œํ๋ฆฌํ‹ฐ ๋ณด์•ˆ ์„ค์ •
  • Loading branch information
JoosungKwon authored Jan 27, 2023
1 parent 08dfa72 commit 41662a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' // OAuth2-Client dependency
implementation 'org.springframework.boot:spring-boot-starter-actuator'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/docs/**").permitAll()
.antMatchers("/actuator/**").hasRole("USER")
.anyRequest().authenticated()
.and()
// REST API ๊ธฐ๋ฐ˜์ด๊ธฐ ๋•Œ๋ฌธ์— ์‚ฌ์šฉ X
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ spring:
include:
- db
- exception
- security
- security

management:
endpoints:
web:
exposure:
include: '*'

0 comments on commit 41662a8

Please sign in to comment.