第三講:3.1 spring 如何裝配bean
阿新 • • 發佈:2018-12-19
1,複製專案Spring402 ,改名為Spring402-02。建包:com.cruise.entity .建類:People類,定義屬性 id name age,get()和 set()方法,package com.cruise.entity;public class People { private int id; private String name; private int age; public int getId() { return id; } public void setId(int id) { this