Estou com problema ao integrar o spring com o postgree, está exatamente igual ao video porem não funciona, nao cria as tabelas sozinho, alguem pode me ajudar?
2024-05-25T16:44:47.317-03:00 INFO 20120 --- [ main] c.example.demo.ProjetoLojaApplication : Starting ProjetoLojaApplication using Java 17.0.10 with PID 20120 (C:\programa\projetoloja\demo\target\classes started by Alan in C:\programa\projetoloja) 2024-05-25T16:44:47.319-03:00 INFO 20120 --- [ main] c.example.demo.ProjetoLojaApplication : No active profile set, falling back to 1 default profile: "default" 2024-05-25T16:44:47.670-03:00 INFO 20120 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2024-05-25T16:44:47.684-03:00 INFO 20120 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 8 ms. Found 0 JPA repository interfaces. 2024-05-25T16:44:47.954-03:00 INFO 20120 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2024-05-25T16:44:47.998-03:00 INFO 20120 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.4.4.Final 2024-05-25T16:44:48.021-03:00 INFO 20120 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2024-05-25T16:44:48.231-03:00 INFO 20120 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2024-05-25T16:44:48.255-03:00 INFO 20120 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2024-05-25T16:44:48.598-03:00 INFO 20120 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@5a917723 2024-05-25T16:44:48.599-03:00 INFO 20120 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2024-05-25T16:44:49.042-03:00 INFO 20120 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 2024-05-25T16:44:49.047-03:00 INFO 20120 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2024-05-25T16:44:49.233-03:00 INFO 20120 --- [ main] c.example.demo.ProjetoLojaApplication : Started ProjetoLojaApplication in 2.2 seconds (process running for 2.459)
application.properties spring.datasource.url=jdbc:postgresql://localhost/projetoloja spring.datasource.username=postgres spring.datasource.password=123 spring.datasource.driver-class-name=org.postgresql.Driver hibernate.dialect=org.hibernate.dialect.HSQLDialect spring.jpa.show-sql=true spring.jpa.hibernate.ddl-auto=update
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>