본문 바로가기

분류 전체보기854

스프링 시큐리티 과거에 프레임워크 없이 프로그래밍을 할 때는 , 웹이 모든 url 접근에 대해서 세션을 체크하여 로그인했는지 그리고 권한이 있는지를 체크하는 로직을 넣을 때, 이런 체크 로직들이 원래 만들고자 했던 비지니스 로직의 이해를 방해하기 때문에 모든 웹 애플리케이션의 기능을만들고 맨 나중에 한꺼번에 넣곤했다. 서로 다른 사람들이 각자 자기만의 방법으로 인증과 접근권한의 설정 로직을 만들면 서로 간에도 파악해야 할 부분이 많이 생기고, 그래서 오랜기간 같이 작업을 하던 팀원이 아니면 서로의 조직을 빠르게 파악하지 못하는 등 단점이 생기기도 하였다. 스프링 시큐리티는 스프링 기반의 애플리케이션의 보안, 즉 사용자 인증과 접근권한의 설정을 담당하는 프레임워크이다. 스프링 시큐리티는 보안과 관련해서 체계적으로 많은 옵.. 2021. 9. 2.
백준 1699 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main1699 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int[] D = new int[N+1]; //마지막수가 i^2라 가정하면, 그 이전까지의 합은 N-i^2이다. //즉 D[N-i^2]를 구해 +1을 해주면 D[N]을 구할 수 있다. //N .. 2021. 9. 1.
백준 1912 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main1912 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //수열 갯수 StringTokenizer st = new StringTokenizer(br.readLine()); int[] A .. 2021. 9. 1.
백준 14002 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main14002 { public static StringBuilder sb = new StringBuilder(); public static int[] V = new int[1001]; // 출력 수열 public static int[] A = new int[1001]; // 입력 수열 public static int[] D = new int[1001]; // 길이 public static void main(String[] args) throws IOExc.. 2021. 8. 31.
백준 11054 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main11054 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //수열 A의 크기 int[] A = new int[N]; int[] D = new int[N]; int[] D2 = new i.. 2021. 8. 31.
백준 11722 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main11722 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //수열 A의 크기 int[] A = new int[N+1]; int[] D = new int[N+1]; StringTokeni.. 2021. 8. 30.