data bind
package herdin.boot;
public class Event {
private Integer id;
private String title;
public Event(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public String toString() {
return this.id + " : " + this.title;
}
}
PropertyEditorSupport 를 사용할 경우.
Converter 를 사용해보자
Formatter 를 사용해보자.
Last updated
Was this helpful?