pjhwin10679
@pjhwin10679
Reviews Written
2
Average Rating
5.0
Posts
Q&A
์์ด์ ํธ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
์ค๋ ๋ฆฌ๋ทฐ๋ code-reviewer ์์ด์ ํธ๊ฐ ์๋๋ผ /code-review ์คํฌ๋ก ์คํ๋์์ต๋๋ค. ์ฌ์ฉ์: code-reviewer ์๋ธ์์ด์ ํธ๋ฅผ ํ์ฉํด์ ์ ์ฒด ์ฝ๋ ๋ฆฌ๋ทฐ โ Skill tool๋ก "code-review" ์คํฌ ์คํ โ ์คํฌ์ ๋ฉ์ธ ์ปจํ ์คํธ์์ ์คํ โ ์์ ์์, ๋ฉ์ธ์ ํ์ถ์ค์ต ๊ณผ์ ์์ ์คํฌ์ด ์คํ๋์๋๊ฑฐ ๊ฐ์ต๋๋ค. ์ฌ์๋ ํด์ ์์ด์ ํธ ๋์ ํ์ธํ์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
- Likes
- 0
- Comments
- 2
- Viewcount
- 14
Q&A
/h2-console 403 ์๋ฌ
์ด๋ ๊ฒ ํ๋ฒ ํด๋ณด์ธ์.package me.silvernine.jwttutorial.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer; import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.util.matcher.AntPathRequestMatcher; //@EnableWebSecurity @Configuration // ์ด๋ ธํ ์ด์ ์์ผ๋ฉด ์๋ํ์ง ์์ public class SecurityConfig { @Bean public WebSecurityCustomizer webSecurityCustomizer() { return (web) -> web.ignoring() .requestMatchers("/h2-console/**", "/favicon.ico"); } @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeRequests() .requestMatchers("/api/hello").permitAll() .and() .csrf().ignoringRequestMatchers(new AntPathRequestMatcher("/h2-console/**")) .and() .headers().frameOptions().disable() ; return http.build(); } }
- Likes
- 0
- Comments
- 3
- Viewcount
- 2.4K




