2 Commits

Author SHA1 Message Date
codej99
8ad0baad33 Merge pull request #15 from codej99/feature/gracefullyshutdown
Blue / Green Deployment
2019-05-03 15:14:45 +09:00
codej99
c2a2ba9b46 Merge pull request #14 from codej99/feature/gracefullyshutdown
Feature/gracefullyshutdown
2019-05-03 15:11:23 +09:00
2 changed files with 2 additions and 2 deletions

View File

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

View File

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