Krishna0718 commited on
Commit
bc67cb0
·
1 Parent(s): bb5169d

Application properties database are changed

Browse files
src/main/resources/application-docker.properties ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ spring.datasource.url=jdbc:mysql://mysqldb:3306/mystara
2
+ spring.datasource.username=root
3
+ spring.datasource.password=root
src/main/resources/application.properties CHANGED
@@ -1,9 +1,11 @@
1
  #MySQL configuration
2
- spring.datasource.url=jdbc:mysql://localhost:3306/mystara
3
  spring.datasource.username = root
4
  spring.datasource.password = root
5
  spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6
 
 
 
7
  spring.jpa.hibernate.ddl-auto=update
8
  spring.jpa.show-sql=true
9
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
 
1
  #MySQL configuration
2
+ spring.datasource.url=jdbc:mysql://mysqldb:3306/mystara
3
  spring.datasource.username = root
4
  spring.datasource.password = root
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