81,122
社区成员




public class Test{
public static void main(String[] args) {
List<Notice> list = Xxxx.findAllNotice();//Xxxx是你那个类名
for(Notice notice : list) {
int id = notice.getNid();
String title = notice.getNtitle();
String content = notice.getNcontent();
Date starttime = notice.getNstarttime();
Date endtime = notice.getNendtime();
System.out.println("id: " + id + "title: " + title + "content: " + content + "starttime: " + starttime + "endtime: " + endtime);
}
}
}