課金日を開いたときに、画面を開いたときに今日の日付を入力されているようにしたいです。
これをはり付ければ良いのでしょうか?
import java.util.Date;
public class Main{
public static void main(String[] args){
Date now = new Date();
System.out.println(now);
}
}
こちらのプログラムに画面を開いたときに今日の日付を入力されているように変更
package com.example.billing.Request;
import java.time.LocalDate;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
@Data
public class BillingNewRequest {
private Integer id; @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate date; private Integer billing; private String application; private String result; private String remarks;
}
あなたの回答
tips
プレビュー