Заменил используемую СУБД Postgres на MySQL

https://spring.io/guides/gs/accessing-data-mysql
This commit is contained in:
Leonid
2025-02-04 10:23:44 +03:00
parent a44391dcf7
commit 7583c00749
3 changed files with 15 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
spring.jpa.hibernate.ddl-auto = update
spring.datasource.url=jdbc:postgresql://localhost:5454/sweater_db
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/sweater_db
spring.datasource.username=user
spring.datasource.password=123456
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.show-sql: true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver