Skip to content

Instantly share code, notes, and snippets.

8100 +0/ -0 ██████████████░░░░░░░ 67.3%
3672 +0/ -0 ██████▍░░░░░░░░░░░░░░ 30.5%
270 +0/ -0 ▍░░░░░░░░░░░░░░░░░░░░ 2.2%
🌞 Morning 13 commits ██▎░░░░░░░░░░░░░░░░░░ 10.9%
🌆 Daytime 30 commits █████▎░░░░░░░░░░░░░░░ 25.2%
🌃 Evening 64 commits ███████████▎░░░░░░░░░ 53.8%
🌙 Night 12 commits ██░░░░░░░░░░░░░░░░░░░ 10.1%
@ohjuntaek
ohjuntaek / CustomLoginSuccessHandler.java
Last active May 15, 2019 10:13
시큐리티 적용한것들
package com.ssafy.safefood.config;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.security.core.Authentication;
// src/main/java/hello/
package hello;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;