본문 바로가기

Today I Learned/Daily Log5

[DailyLog] package org.springframework.beans.factory.annotation does not exixt 상황 인텔리제이로 작업 중이었던 프로젝트가 갑자기 실행이 안되고 다음과 같이 빨간줄 천지가 되었다. package org.springframework.beans.factory.annotation does not exist cannot find symbol class Bean 해결 1 IntelliJ 상단 메뉴 중 Build에서 Rebuild Project를 클릭하여 프로젝트를 새로 빌드한다. 해결 2 우측 Gradle 창에서 프로젝트에 우클릭 후 Refresh Gradle Dependencies를 클릭한다. 2024. 2. 15.
[DaliyLog] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 상황 새 프로젝트를 진행하면서 Jpa와 MySQL을 연동하는 중 다음과 같은 경고가 떴다. WARN 8604 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 해결 SpringBoot는 기본적으로 spring.jpa.open-in-view이 true로 설정되어 있고, 랜더링 중에 database 쿼리가 실행될 수 있다고 한다. 그러므.. 2024. 2. 5.
[DailyLog] Windows Hello 지문과 호환되는 지문 스캐너를 찾을 수 없습니다. 상황 필자는 삼성전자 갤럭시북 이온 NT950XCR-A58A를 사용하고 있다. 노트북 로그인 시 평소에 잘 되던 지문 인식이 안되어 로그인 옵션에 갔더니 Windows Hello 뭐시기 오류가 떠있는 것을 확인했다. 구글링을 해보니 삼성전자 노트북 뿐만 아니라 Windows 기반인 많은 노트북들이 고통을 받고 있는 것을 확인했다. 여러 방법을 한 결과 지문 인식 되살리는데 성공했고, 그 해결 방법을 남기려고 한다. 해결 먼저 장치 관리자를 검색한다. 상단 메뉴 보기에서 숨겨진 장치 표시를 클릭한다. 생체 인식 장치를 찾아본다. 필자는 CanVasBio Fingerprint Driver을 확인할 수 있는데 기기마다 다른 드라이버가 있을 것 같다. 이 드라이버를 더블 클릭한다. 상단 메뉴 드라이버를 클릭 후.. 2023. 10. 24.
[DailyLog] A problem occurred configuring root project 'hello-spring'. 상황 Spring Initializr에서 프로젝트 생성 후 IntelliJ에서 실행을 했더니 다음과 같은 무시무시한 오류가 떴다. 더보기 A problem occurred configuring root project 'hello-spring'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.0 > No matching variant of o.. 2022. 12. 15.
[DailyLog] Postman Status: 401 Unauthorized 상황 간단한 프로젝트를 위한 Spring MVC 계층을 만들고 분명 포스트맨으로 요청과 응답을 잘 주고 받는 것을 확인하였다. Spring Security 의존성만 더 추가된 팀원의 프로젝트를 나의 로컬로 pull 하였다. 그런데 갑자기 포스트맨이 응답이 없어지고 포스트맨에 'Status: 401 Unauthorized' 에러가 떴다. Unauthorized를 보니 Spring Security 의존성과 관련된 문제인 것 같다. 해결 기존의 작업을 이어나가기 위해 두 가지 방법을 알아냈다. 첫 번째 방법은 위 의존성을 주석처리하고 작업을 진행하는 것이다. 두 번째 방법은 @SpringBootApplication 옆에 (exclude = {SecurityAutoConfiguration.class})을 추가하.. 2022. 10. 27.