전체 글200 org.springframework.beans.factory.UnsatisfiedDependencyException 오류가 너무 길어서 정말 읽기 싫었는데 다행히 시크릿키를 분리하는 와중에 일어난 오류였다 Client id must not be empty 다행히 아주 친절하게 위와 같이 나와있었다. 정신 꼭꼭 차리기! 더보기 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through field 'httpSecurity': Error creating bean with nam.. 오늘의 뚝딱/ERROR 2023. 5. 2. [Lv. 1] 하샤드 수 class Solution { public boolean solution(int x) { boolean answer = true; int sum = 0; int a = x; while (a > 0) { sum += a % 10; a /= 10; } if (x % sum == 0) { answer = true; } else{ answer = false; } return answer; } } Algorithm/프로그래머스 2023. 5. 1. Injection of autowired dependencies failed 보통 autowired 어노테이션이 어딘가에서 빠져서 나는 에러라고 한다 @Contoller를 확인하고 여기서 호출하는 서비스에 @Autowired가 제대로 붙어있나 확인한다고 한다 근데 나는 이 경우가 아니었다 알고 봤더니 yml 파일에서 커스텀한 변수명과 AppConfig 파일에서 호출한 변수명이 달랐기 때문이었다! 확인 잘해주기! 오늘의 뚝딱/ERROR 2023. 4. 30. [Lv. 1] 정수 내림차순으로 배치하기 class Solution { public long solution(long n) { long answer = 0; String[] str = Long.toString(n).split(""); Arrays.sort(str, Collections.reverseOrder()); String answ = ""; for(String s : str) answ += s; answer = Long.parseLong(answ); return answer; } } Algorithm/프로그래머스 2023. 4. 27. [Lv. 1] 문자열을 정수로 바꾸기 class Solution { public int solution(String s) { int answer = 0; answer = Integer.parseInt(s); return answer; } } Algorithm/프로그래머스 2023. 4. 27. [Lv. 1] 정수 제곱근 판별 class Solution { public long solution(long n) { long answer = 0; Double sqrt = Math.sqrt(n); if(sqrt == sqrt.intValue()){ answer = (long)Math.pow(sqrt + 1, 2); } else answer = -1; return answer; } } 카테고리 없음 2023. 4. 25. [Lv. 1] 자연수 뒤집어 배열로 만들기 class Solution { public int[] solution(long n) { String a = "" + n; int[] answer = new int[a.length()]; int cnt = 0; while (n > 0) { answer[cnt] = (int) (n % 10); n /= 10; cnt++; } return answer; } } Algorithm/프로그래머스 2023. 4. 24. [Lv. 1] 문자열 내 p와 y의 개수 class Solution { boolean solution(String s) { boolean answer = true; char ch; int cnt = 0; for(int i = 0; i < s.length(); i++){ ch = s.charAt(i); if(ch == 'p' || ch == 'P') cnt ++; else if(ch == 'y' || ch == 'Y') cnt --; if(cnt != 0){ answer = false; }else{ answer = true; } } return answer; } } Algorithm/프로그래머스 2023. 4. 24. [CentOS9] OpenJDK17 설치하기 설치 가능한 OpenJDK 버전 확인하기 yum list java*jdk-devel 명령어를 실행하면 다음과 같은 사용 가능한 jdk 버전들을 확인 할 수 있다. 필요한 버전 설치하기 yum install 필요한버전명 -y -y는 설치 관련 질문에 y를 누르는 것과 같은 효과를 주는 옵션이다 생략가능! 설치 확인/ 버전 확인 rpm -qa java*jdk-devel#설치확인 javac -version#자바 버전 확인 개발환경 2023. 4. 24. [Lv. 1] x만큼 간격이 있는 n개의 숫자 class Solution { public long[] solution(int x, int n) { long[] answer = new long[n]; long num = x; for(int i = 0; i < answer.length; i++){ answer[i] = num; num += x; } return answer; } } Algorithm/프로그래머스 2023. 4. 21. [Lv. 1] 약수의 합 class Solution { public int solution(int n) { int answer = 0; for(int i = 1 ; i 카테고리 없음 2023. 4. 21. [Lv. 1] 나머지가 1이 되는 수 찾기 class Solution { public int solution(int n) { int answer = 0; for(int i = 2; i < n; i++){ if(n % i == 1){ answer = i; break; } } return answer; } } Algorithm/프로그래머스 2023. 4. 21. 이전 1 ··· 3 4 5 6 7 8 9 ··· 17 다음