로그아웃 후 로그인 안될 때 - eunja511005/Tutorial GitHub Wiki
오류 내용
spring boot Maximum sessions of 1 for this principal exceeded
해결책
MyWebSecurityConfigurerAdapter.java 파일에 아래 Bean 만 추가 해 주면 됨
그리고, logout은 반드시 post로 호출해야 한다.
@Bean
public ServletListenerRegistrationBean<HttpSessionEventPublisher> httpSessionEventPublisher() {
return new ServletListenerRegistrationBean<HttpSessionEventPublisher>(new HttpSessionEventPublisher());
}