摘要:
方法一:使用构造器实例化beanjava代码:package com.model;public class User { private String username; public User(){ } public User(String username){ this.setUsername(username); } public void sayHello(){ System.out.println("hello "); } public String getUs... 阅读全文