2024/02 4

[error] Cannot resolve symbol 'WebSecurityConfigurerAdaper' 해결 방법

Springboot 3 버전에서는 WebSecurityConfigurerAdaper를 사용할 수 없게 됐다. SecurityConfig 에서 @Bean public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } public void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userService).passwordEncoder(passwordEncoder()); } 이렇게 쓰던 방식으로는 사용할 수 없게 되었다. 해결 방법은 @Bean pu..

error 2024.02.23

[백준/Python] 10828번 스택

https://www.acmicpc.net/problem/10828 10828번: 스택 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net import sys t = int(input()) stack = [] def push(num): stack.append(num) def pop(): if len(stack) == 0: print(-1) else: print(stack[-1]) stack.pop() def size(): print(len(stack)) def empty(): if len(stack) == 0: pr..

알고리즘/백준 2024.02.13