三、第一個程序
阿新 • • 發佈:2018-03-04
lap play code 官網 ted click ets img ()
1.工程目錄結構
2.需要導入的jar包
除了和外,其他的都是mybatis的核心包,直接可以在官網下載。
3.具體程序
package com.bjpowernode.beans; public class Student { private Integer id; private String name; private int age; private double score; public Student() { super(); // TODO Auto-generated constructor stubStudent.java} public Student(String name, int age, double score) { super(); this.name = name; this.age = age; this.score = score; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; }public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public double getScore() { return score; }public void setScore(double score) { this.score = score; } @Override public String toString() { return "Student [name=" + name + ", age=" + age + ", score=" + score + "]"; } }
三、第一個程序