remove mysql and using h2 db
This commit is contained in:
parent
e783f0c748
commit
09eaca9914
|
@ -33,11 +33,6 @@
|
|||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.ttddyy</groupId>
|
||||
<artifactId>datasource-proxy</artifactId>
|
||||
|
|
|
@ -13,8 +13,10 @@ spring.jpa.properties.hibernate.generate_statistics=true
|
|||
#spring.jpa.properties.javax.persistence.schema-generation.scripts.create-source=metadata
|
||||
#spring.jpa.properties.hibernate.format_sql=true
|
||||
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/db_products?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=root
|
||||
# spring.datasource.url=jdbc:mysql://localhost:3306/db_products?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
|
||||
# spring.datasource.username=root
|
||||
# spring.datasource.password=root
|
||||
|
||||
spring.jpa.hibernate.ddl-auto= update
|
||||
# spring.jpa.hibernate.ddl-auto= update
|
||||
|
||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
Loading…
Reference in New Issue