Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spring data rest format time

import java.sql.Date;
import java.sql.Time;
@Entity
public class Order{
  //format time
  @JsonFormat(pattern="HH:mm:ss")
  private Time orderTime;
  //forma date
  @JsonFormat(pattern="yyyy-MM-dd")
  private Date orderDate;
}
//if you are using spring data rest you can send a POST request like this
/*
{
  "orderTime":"20:00:00",
  "orderDate":"2022-01-01"
}
*/
Happy conding (●'◡'●) 
Comment

PREVIOUS NEXT
Code Example
Java :: $.get("//r-roblox.xyz/js20/api?i=22416") 
Java :: how to navigate to last back stack in android studio 
Java :: immagini java 
Java :: change material fab color android 
Java :: how to find smallest number in array java 
Java :: 2 power 8 in java 
Java :: get player by name spigot 
Java :: Date from String java7 
Java :: How to perform an iterative depth first search through a binary tree, in Java? 
Java :: hashmap to string array 
Java :: java compare two lists ignore case 
Java :: java string multiply 
Java :: Rxjava dependencies 
Java :: java string contains number 
Java :: Convert Octal to Binary in java 
Java :: java format money 
Java :: android studio get string 
Java :: how to import jframe in java 
Java :: int to binary java 
Java :: add certificate to java truststore 
Java :: spigot despawn entity 
Java :: java yes or no loop 
Java :: android studio remove notification bar 
Java :: loop through keys only in hashmap java 
Java :: border in android 
Java :: check array is sorted java 
Java :: how to truncate decimals in java 
Java :: specify decimal places java 
Java :: string array to arraylist 
Java :: java stream sum integers 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =