5.23部落格

张佳木發表於2024-06-16

python和工程數學

學習內容:下午沒課所以可以看一下spring-boot自動配置原理

安卓:

package com.example.app_02.entity;

public class User {
private String username;
private String password;

public User() {
}

public User(String username, String password) {
this.username = username;
this.password = password;
}

/**
* 獲取
* @return username
*/
public String getUsername() {
return username;
}

/**
* 設定
* @param username
*/
public void setUsername(String username) {
this.username = username;
}

/**
* 獲取
* @return password
*/
public String getPassword() {
return password;
}

/**
* 設定
* @param password
*/
public void setPassword(String password) {
this.password = password;
}

public String toString() {
return "User{username = " + username + ", password = " + password + "}";
}
}