skip to Main Content

Mysql – i am learning springboot and try to create a table user (maven project)

i am using vs code , jdk version(19), windows 10, java 17 for springboot ,mysql ,hibernate ,lombok etc . the project files are as follows; pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.2.0</version> <relativePath/>…

VIEW QUESTION

Json Deserialization of string "2023-11-10 23:01:18.940" to calendar

I am trying to deserialize json String date to Calendar and deserialization is working however it is not what i want. Current Behaviour @JsonProperty("systemDt") @JsonFormat(Pattern="yyyy-MM-dd HH:mm:ss.SSS") Calendar responseDateTime; Deserializes to responseDateTime=java.util.GregorianCalendar[time=1141556400000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="UTC"...... I want a Simple Calendar Date of the format…

VIEW QUESTION
Back To Top
Search