생성자가 정의되지 않아서 생기는 문제였습니다.

 

아래와 같이 인수와 피라미터가 없는 생성자를 추가해주면 해결됩니다.

 

public BoardModel() { // 새로추가
        
}

public BoardModel(String title, String content, String uid, String time) {
        this.title = title;
        this.content = content;
        this.uid = uid;
        this.time = time;
}

 

 

 

 

관련 링크 : https://stackoverflow.com/questions/47706601/users-does-not-define-no-argument-constructor

+ Recent posts