junseong Kim
@gomshiki
Reviews Written
3
Average Rating
4.7
Posts
Q&A
2:00 ์์ ์ ์ฒ๋ผ ๋ฒ์ ์ ๋ง์ถฐ์ ํด์ ํค๋งค๋ ๋ถ๋ค ์ด๊ฑธ๋ก ํด๋ณด์ธ์.
terrinens ๋ ๋๋ถ์ ํด๊ฒฐํ์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.์ถ๊ฐ๋ก ์ ๋ spring 3.1.5 ์ฌ์ฉ์ค์ธ๋ฐ ์๋ ค์ฃผ์ ์ฝ๋๋๋ก ํ์ ๋ requestMatchers()์์ Ant ํจํด์ผ๋ก ์์ฑํ๋ผ๋ ์ปดํ์ผ ์๋ฌ๊ฐ ๋ฐ์ํด์ ์๋์ ๊ฐ์ด ์์ ํ์ต๋๋ค.@Configuration @EnableWebSecurity @EnableMethodSecurity public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception { return httpSecurity .csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests((registry) -> registry.requestMatchers(new AntPathRequestMatcher("/api/hello")).permitAll() .anyRequest().authenticated() ) .build(); } }
- 0
- 3
- 1.2K
Q&A
Property ' ' has no initializer and is not definitely assigned in the constructor ts ๋ฌธ์ ํด๊ฒฐ ๋ฐฉ๋ฒ ๋ฌธ์
ํด๋น ๋ถ๋ถ ์๋์ ๊ฐ์ด ์ํํ๋ ํด๊ฒฐ๋๋ค์serverํด๋ > tsconfig.json"strictPropertyInitialization" : false ๋ณ๊ฒฝvscode typescript restart : ์๋ ๋จ์ถํค ์ฐธ๊ณ ํด์ ํ์๋ฉด ๋ ๊ฑฐ ๊ฐ๋ค์(์ฌ์ง)
- 0
- 1
- 333




