본문 바로가기

TIL

[ERROR] IntelliJ - actual and formal argument lists differ in length

 

- 에러 Stack 예)

Error:(27, 24) java: constructor Employee in class com.course.rabbitmqproducer.entity.Employee cannot be applied to given types;
  required: no arguments
  found: java.lang.String,java.lang.String,java.time.LocalDate
  reason: actual and formal argument lists differ in length

 

 

- 해결 방법

 

Settings > Build, Execution, Deployment > Compiler > Annotation > Enable annotation processing 체크

'TIL' 카테고리의 다른 글

Java SE, JVM, JRE, JDK  (0) 2020.03.19
OOP(Object-Oriented Programming)  (0) 2020.03.02