- update ftl path
- delete duplicate security settings
This commit is contained in:
kimyonghwa
2019-11-14 11:28:56 +09:00
parent e4f7f2da78
commit 9e30c2ca80
3 changed files with 2 additions and 4 deletions

View File

@@ -9,8 +9,6 @@ import org.springframework.data.redis.cache.CacheKeyPrefix;
import org.springframework.data.redis.cache.RedisCacheConfiguration; import org.springframework.data.redis.cache.RedisCacheConfiguration;
import org.springframework.data.redis.cache.RedisCacheManager; import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.RedisSerializationContext; import org.springframework.data.redis.serializer.RedisSerializationContext;
import org.springframework.data.redis.serializer.StringRedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer;

View File

@@ -32,7 +32,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.and() .and()
.authorizeRequests() // 다음 리퀘스트에 대한 사용권한 체크 .authorizeRequests() // 다음 리퀘스트에 대한 사용권한 체크
.antMatchers("/*/signin", "/*/signin/**", "/*/signup", "/*/signup/**", "/social/**").permitAll() // 가입 및 인증 주소는 누구나 접근가능 .antMatchers("/*/signin", "/*/signin/**", "/*/signup", "/*/signup/**", "/social/**").permitAll() // 가입 및 인증 주소는 누구나 접근가능
.antMatchers(HttpMethod.GET, "/exception/**", "/helloworld/**","/actuator/health", "/v1/board/**").permitAll() // hellowworld로 시작하는 GET요청 리소스는 누구나 접근가능 .antMatchers(HttpMethod.GET, "/exception/**", "/helloworld/**","/actuator/health", "/v1/board/**", "/favicon.ico").permitAll() // 등록된 GET요청 리소스는 누구나 접근가능
.anyRequest().hasRole("USER") // 그외 나머지 요청은 모두 인증된 회원만 접근 가능 .anyRequest().hasRole("USER") // 그외 나머지 요청은 모두 인증된 회원만 접근 가능
.and() .and()
.exceptionHandling().accessDeniedHandler(new CustomAccessDeniedHandler()) .exceptionHandling().accessDeniedHandler(new CustomAccessDeniedHandler())

View File

@@ -37,7 +37,7 @@ public class HelloController {
@GetMapping(value = "/helloworld/page") @GetMapping(value = "/helloworld/page")
public String helloworld() { public String helloworld() {
return HELLO; return "helloworld";
} }
@GetMapping("/helloworld/long-process") @GetMapping("/helloworld/long-process")