Skip to content

Commit

Permalink
fix: slack webhook url 이 정상적으로 주입되지 않고 있던 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeuk520 committed Sep 19, 2024
1 parent 9f735a9 commit a7a8d3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/ku/covigator/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public OpenAPI openAPI() {
);

return new OpenAPI()
.components(new Components())
.addSecurityItem(securityRequirement)
.components(components);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@Getter
@RequiredArgsConstructor
@ConfigurationProperties("slack.webhook.url")
@ConfigurationProperties("slack.webhook")
public final class SlackProperties {
private final String slackWebhookUrl;
private final String url;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SlackAlarmGenerator {
@Async
public void sendSlackAlertErrorLog(Exception e, HttpServletRequest request) {
try {
slack.send(slackProperties.getSlackWebhookUrl(), payload(p -> p
slack.send(slackProperties.getUrl(), payload(p -> p
.text("[서버 에러 발생]")
.attachments(
List.of(generateSlackAttachment(e, request))
Expand Down

0 comments on commit a7a8d3f

Please sign in to comment.