skip to Main Content

How to map JSON in a Java object

I'm trying to transform this JSON in a Java object. But I'm struggling with this conversion. { "id": "c01cede4-cd45-11eb-b8bc-0242ac130003", "publisherId": "nintendo", "name": "Mario", "timePlayed": { "2023-05-01": 10, "2023-05-02": 2, "2023-05-03": 3, "2023-05-04": 4 } } First, I created a class…

VIEW QUESTION

Mysql – Java Springboot isn't working as expected. What's wrong with my code

We have just started with springboot. I did all of the steps my professor has shown, but it does not seem to be creating a database. **Application** spring.datasource.url = jdbc:mysql://localhost:3306/dbLastNameDemo spring.datasource.username = root spring.datasource.password = password spring.jpa.database-platform = org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.hibernate.ddl-auto…

VIEW QUESTION
Back To Top
Search