Skip to content

Commit 9e30c2c

Browse files
author
kimyonghwa
committed
bugfix
- update ftl path - delete duplicate security settings
1 parent e4f7f2d commit 9e30c2c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

‎src/main/java/com/rest/api/config/RedisConfig.java

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import org.springframework.data.redis.cache.RedisCacheConfiguration;
1010
import org.springframework.data.redis.cache.RedisCacheManager;
1111
import org.springframework.data.redis.connection.RedisConnectionFactory;
12-
import org.springframework.data.redis.core.RedisTemplate;
13-
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
1412
import org.springframework.data.redis.serializer.RedisSerializationContext;
1513
import org.springframework.data.redis.serializer.StringRedisSerializer;
1614

‎src/main/java/com/rest/api/config/security/SecurityConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected void configure(HttpSecurity http) throws Exception {
3232
.and()
3333
.authorizeRequests() // 다음 리퀘스트에 대한 사용권한 체크
3434
.antMatchers("/*/signin", "/*/signin/**", "/*/signup", "/*/signup/**", "/social/**").permitAll() // 가입 및 인증 주소는 누구나 접근가능
35-
.antMatchers(HttpMethod.GET, "/exception/**", "/helloworld/**","/actuator/health", "/v1/board/**").permitAll() // hellowworld로 시작하는 GET요청 리소스는 누구나 접근가능
35+
.antMatchers(HttpMethod.GET, "/exception/**", "/helloworld/**","/actuator/health", "/v1/board/**", "/favicon.ico").permitAll() // 등록된 GET요청 리소스는 누구나 접근가능
3636
.anyRequest().hasRole("USER") // 그외 나머지 요청은 모두 인증된 회원만 접근 가능
3737
.and()
3838
.exceptionHandling().accessDeniedHandler(new CustomAccessDeniedHandler())

‎src/main/java/com/rest/api/controller/HelloController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Hello helloworldJson() {
3737

3838
@GetMapping(value = "/helloworld/page")
3939
public String helloworld() {
40-
return HELLO;
40+
return "helloworld";
4141
}
4242

4343
@GetMapping("/helloworld/long-process")

0 commit comments

Comments
 (0)