oldblue
38
2018-02-13 18:27:05
4
225

맞게 작성했는데, 이러가 뜹니다.


org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'nWriteDate' of 'class com.tj.notice.model.Notice1' with value '2018-02-12 15:17:54.0' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'nWriteDate' in 'class com.tj.notice.model.Notice1'
package com.tj.notice.model;

import java.sql.Timestamp;

public class Notice1 {
	private int nIdx;
	private String aID;
	private String nTitle;
	private String nContent;
	private Timestamp nWritedate;
	private int startRow;
	private int endRow;
	public int getnIdx() {
		return nIdx;
	}
	public void setnIdx(int nIdx) {
		this.nIdx = nIdx;
	}
	public String getaID() {
		return aID;
	}
	public void setaID(String aID) {
		this.aID = aID;
	}
	public String getnTitle() {
		return nTitle;
	}
	public void setnTitle(String nTitle) {
		this.nTitle = nTitle;
	}
	public String getnContent() {
		return nContent;
	}
	public void setnContent(String nContent) {
		this.nContent = nContent;
	}
	public Timestamp getnWritedate() {
		return nWritedate;
	}
	public void setnWritedate(Timestamp nWritedate) {
		this.nWritedate = nWritedate;
	}
	public int getStartRow() {
		return startRow;
	}
	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}
	public int getEndRow() {
		return endRow;
	}
	public void setEndRow(int endRow) {
		this.endRow = endRow;
	}
	
	
}

0
0
  • 답변 4

  • kenu
    38k
    2018-02-13 18:30:37
    There is no setter for property named 'nWriteDate' in 'class com.tj.notice.model.Notice1'
    0
  • kenu
    38k
    2018-02-13 18:31:06
    getnWritedate
    0
  • 왕초보코딩탈출
    203
    2018-02-14 03:27:12
    private Timestamp nWritedate;
    Timestamp 를 Date 또는 String으로 해서 출력해보셔야할것같아요 
    0
  • kenu
    38k
    2018-02-14 08:02:14

    nWritedate -> nWriteDate

    2
  • 로그인을 하시면 답변을 등록할 수 있습니다.