ERROR 16

[ 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 ] - 카프카 관련 에러

에러 메시지 Caused by: java.lang.IllegalStateException: No group.id found in consumer config, container properties, or @KafkaListener annotation; a group.id is required when group management is used. 위와 같은 에러는 스프링 부트에서 카프카 컨슈머 사용 시 설정해주어야 하는 내용 중 group.id를 설정해주지 않아 발생한 에러이다. 이를 해결해주기 위해서는 application.yml에 아래와 같이 group.id 관련한 내용을 추가해주면 된다.

ERROR 2024.01.01

[ 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

[ ERROR ] - next error (Unhandled Runtime Error)

Unhandled Runtime Error Error: Rendered more hooks than during the previous render. 위와 같은 에러가 나는 이유는 조건에 따라 hook을 요청할 때 발생하는 에러이다. 이를 해결하기 위해서는 hook을 조건 내부가 아닌 최상단위에 작성하여 주면 된다. 예를 들면 아래와 같은 경우 위의 에러가 난다. import {useEffect, useState} from 'react'; const Home = ({auth}) => { if (auth) { const [ count, setCount ] = (0); useEffect(()=>{ console.log('welcome to home') },[]) } return ( count : {count..

ERROR 2022.08.03