Skip to content

Commit

Permalink
Deploy : Jwt refreshing cookie fix
Browse files Browse the repository at this point in the history
  • Loading branch information
404-not-foundl committed Mar 28, 2024
1 parent ddd3db5 commit 325daa4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package S10P22D204.authentication.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.server.WebFilter;

@Configuration
public class WebFluxLoggingConfig {

@Bean
public WebFilter loggingFilter() {
return (exchange, chain) -> {
// 요청 로깅
System.out.println("Request: " + exchange.getRequest().getURI());

return chain.filter(exchange).doOnEach(signal -> {
// 응답 로깅
if (!signal.isOnComplete()) {
System.out.println("Response: " + signal.get());
}
});
};
}
}
8 changes: 8 additions & 0 deletions src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ spring:
backend: spring
default-context: application
uri: http://j10d204.p.ssafy.io:8200

logging:
level:
org:
springframework:
web: DEBUG # Spring WebFlux의 디버그 로그 활성화
reactor:
netty: DEBUG # Reactor Netty의 디버그 로그 활성화

0 comments on commit 325daa4

Please sign in to comment.