반응형 반응형 전체 글130 반응형 [Spring Boot] Spring Security + JWT token 로그인 @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable() //h2 .headers() .frameOptions() .sameOrigin() // 시큐리티는 기본적으로 세션을 사용 // 여기서는 세션을 사용하지 않기 때문에 세션 설정을 Stateless 로 설정 .and() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and() //권한 .authorizeRequests() .antMatchers("/resources/**","/css/**", "/images/**","/js/**", "/h2-cons.. 2022. 9. 6. javascript json 데이터 추가/변경 let json = {} //add json data json.title = 'add'; //update json data json.title = 'update'; //delete json data delete json.title; 2022. 8. 30. [Spring] Path with "WEB-INF" or "META-INF" - 해결 //gradle 추가 implementation 'org.apache.tomcat.embed:tomcat-embed-jasper' implementation 'javax.servlet:jstl' //jstl //maven org.apache.tomcat.embed tomcat-embed-jasper 2022. 8. 19. API 문서 자동화 - Swagger //gradle implementation 'io.springfox:springfox-swagger2:2.8.0' implementation 'io.springfox:springfox-swagger-ui:2.8.0' //maven io.springfox springfox-swagger2 2.8.0 io.springfox springfox-swagger-ui 2.8.0 package com.spring2.nyong.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.confi.. 2022. 8. 19. 이전 1 ··· 6 7 8 9 10 11 12 ··· 33 다음 반응형