error 9

[ Error ] Not registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @ConfigurationPropertiesScan

Not registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @ConfigurationPropertiesScan config 관련한 부분이 제대로 등록되지 않아서 발생하는 에러이다.빈으로 등록해주는 클래스에 @Component, @Service 등이 있는지 확인하고, boot를 실행시키는 main 메서드가 있는 클래스에 @ConfigurationPropertiesScan 어노테이션이 추가되어 있는지 확인해주어야 한다.

ERROR 2024.05.20

[ ERROR ] - nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error

nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.example.springBootJoinAndLogin.registration.dao.RegistrationRequest` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creat..

ERROR 2023.05.03

[ Error ] -스프링 부트 관련 에러

애플리케이션 실행 후 java.sql.sqlrecoverableexception: listener refused the connection with the following error: 이와 같은 에러 나는 경우 application.properties에서 spring.datasource.url의 설정이 잘 못 되어 있을 수 있다. 터미널에 lsnctrl 치고 서비스명 확인한 후에 jdbc:oracle:thin:@localhost:1521/[서비스명] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name~~ Bean이 만들어 지지 않아서 발생하는 에러이다. JPA의 경우 각 메서드명에 따..

ERROR 2023.02.23

[ Error ] - ReferenceError: __dirname is not defined in ES module scope

설정을 module로 해두고 아래와 같이 작업 중 에러가 발생하였다. import path from 'path'; const directoryPath = path.join(__dirname, "../router/api"); 위의 에러는 es 모듈 환경에서는 __dirname이 존재하지 않기 때문에 발생하는 문제이다. 이를 해결할 수 있는 두가지 방안이 있다. 1. import path from 'path'; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const directoryPath = path.join(__di..

ERROR 2022.08.15