給枚舉賦值 然後
自定義 一個 getValue()方法,
并且寫一個構造器 this傳參數
public enum AccountStateEnum {
/**账户状态-新建*/
NEW("1")
/**账户状态-开户*/
, OPEN("2")
/**账户状态-变更*/
, CHANGED("3")
/**账户状态-冻结*/
, FREEZED("4")
/**账户状态-销户*/
, TERMINATED("5");
private String accountState;
AccountStateEnum(String accountState) {
this.accountState = accountState;
}
@Override
public String getValue() {
return this.accountState;
}
我也是很卡,播放完一个视频后,得卡死2分钟才能看下一个视频
你应该先看spring入门再来学这门课程