Spaces:
Sleeping
Sleeping
Commit ·
6ba7cab
1
Parent(s): c0b18d6
aiven database add
Browse files
src/main/resources/application-docker.properties
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
spring.datasource.url=mysql://avnadmin:AVNS_ffgNgr1KtCQYvXFUKFc@mysql-1a85f306-dkrish7182006-ddc9.g.aivencloud.com:23705/defaultdb?ssl-mode=REQUIRED
|
| 2 |
-
spring.datasource.username=avnadmin
|
| 3 |
-
spring.datasource.password=AVNS_ffgNgr1KtCQYvXFUKFc
|
|
|
|
|
|
|
|
|
|
|
|
src/main/resources/application.properties
CHANGED
|
@@ -1,18 +1,22 @@
|
|
| 1 |
-
#MySQL
|
| 2 |
-
spring.datasource.url=mysql://
|
| 3 |
spring.datasource.username=avnadmin
|
| 4 |
-
spring.datasource.password=
|
| 5 |
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
| 6 |
|
|
|
|
| 7 |
spring.profiles.active=docker
|
| 8 |
|
|
|
|
| 9 |
spring.jpa.hibernate.ddl-auto=update
|
| 10 |
spring.jpa.show-sql=true
|
| 11 |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
| 12 |
|
|
|
|
| 13 |
spring.jackson.property-naming-strategy=SNAKE_CASE
|
| 14 |
|
|
|
|
| 15 |
spring.cache.type=simple
|
| 16 |
|
|
|
|
| 17 |
server.port=8080
|
| 18 |
-
logging.level.org.springframework=DEBUG
|
|
|
|
| 1 |
+
# MySQL Configuration
|
| 2 |
+
spring.datasource.url=jdbc:mysql://mysql-23eb48e0-krishnamoorthyrishi0718-ce62.j.aivencloud.com:16601/mystara?sslMODE=REQUIRED
|
| 3 |
spring.datasource.username=avnadmin
|
| 4 |
+
spring.datasource.password=AVNS_kdVztjkRAhIuNFH1d-B
|
| 5 |
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
| 6 |
|
| 7 |
+
# Profiles
|
| 8 |
spring.profiles.active=docker
|
| 9 |
|
| 10 |
+
# Hibernate / JPA
|
| 11 |
spring.jpa.hibernate.ddl-auto=update
|
| 12 |
spring.jpa.show-sql=true
|
| 13 |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
| 14 |
|
| 15 |
+
# JSON naming
|
| 16 |
spring.jackson.property-naming-strategy=SNAKE_CASE
|
| 17 |
|
| 18 |
+
# Caching
|
| 19 |
spring.cache.type=simple
|
| 20 |
|
| 21 |
+
# Server & Logging
|
| 22 |
server.port=8080
|
|
|