Boa noite, estou inicializado programação com o SpringBoot, criei uma classe Model, porém quando executo a aplicação não é criada as tabelas no banco do Postgres, o erro mostrado no log do spring abaixo, desde já agradeço ajuda aos colegas.
Database JDBC URL [Connecting through datasource ‘HikariDataSource (HikariPool-1)’]
** Database driver: undefined/unknown**
** Database version: 17.2**
** Autocommit mode: undefined/unknown**
** Isolation level: undefined/unknown**
** Minimum pool size: undefined/unknown**
** Maximum pool size: undefined/unknown**
Arquivo aplication.properties abaixo
```
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=oracle
spring.jpa.hibernate.dll-auto=update
**Arquivo application.properties abaixo, detalhe os dados de conexão estão corretos**
<?xml version="1.0" encoding="UTF-8"?>
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.5.3
com.example
springboot
0.0.1-SNAPSHOT
springboot
Demo project for Spring Boot
<java.version>17</java.version>
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-validation
org.springframework.boot
spring-boot-starter-web
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
**Classe Model para criação da tabela e campos**
package com.example.springboot.model;
import jakarta.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.UUID;
@Entity
@Table(name = “TB_PRODUCTS”)
public class ProductModel implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private UUID idProduct;
private String name;
private BigDecimal value;
public UUID getIdProduct() {
return idProduct;
}
public void setIdProduct(UUID idProduct) {
this.idProduct = idProduct;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public BigDecimal getValue() {
return value;
}
public void setValue(BigDecimal value) {
this.value = value;
}
}