Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 77e5899

Browse files
committed
Add Dev Profile at application-dev.properties
1 parent 68ce15f commit 77e5899

File tree

6 files changed

+61
-6
lines changed

6 files changed

+61
-6
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@
2222
/nbbuild/
2323
/dist/
2424
/nbdist/
25-
/.nb-gradle/
25+
/.nb-gradle/
26+
/bin/
27+
/bin/
28+
/bin/

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.0.1.RELEASE</version>
17+
<version>2.1.0.RELEASE</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

src/main/java/com/example/postgresdemo/PostgresDemoApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ public class PostgresDemoApplication {
1010
public static void main(String[] args) {
1111
SpringApplication.run(PostgresDemoApplication.class, args);
1212
}
13-
}
13+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#BlueJ package file
2+
objectbench.height=93
3+
objectbench.width=760
4+
package.divider.horizontal=0.6
5+
package.divider.vertical=0.8003992015968064
6+
package.editor.height=394
7+
package.editor.width=651
8+
package.editor.x=100
9+
package.editor.y=100
10+
package.frame.height=600
11+
package.frame.width=800
12+
package.numDependencies=0
13+
package.numTargets=2
14+
package.showExtends=true
15+
package.showUses=true
16+
readme.height=58
17+
readme.name=@README
18+
readme.width=47
19+
readme.x=10
20+
readme.y=10
21+
target1.height=50
22+
target1.name=AnswerRepository
23+
target1.showInterface=false
24+
target1.type=InterfaceTarget
25+
target1.width=140
26+
target1.x=10
27+
target1.y=80
28+
target2.height=50
29+
target2.name=QuestionRepository
30+
target2.showInterface=false
31+
target2.type=InterfaceTarget
32+
target2.width=150
33+
target2.x=140
34+
target2.y=90
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
2+
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres_demo
3+
spring.datasource.username= postgres
4+
spring.datasource.password= ny5895vn45v
5+
6+
#spring.datasource.url=${JDBC_DATABASE_URL}
7+
#spring.datasource.username=${JDBC_DATABASE_USERNAME}
8+
#spring.datasource.password=${JDBC_DATABASE_PASSWORD}
9+
10+
# The SQL dialect makes Hibernate generate better SQL for the chosen database
11+
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
12+
13+
# Hibernate ddl auto (create, create-drop, validate, update)
14+
spring.jpa.hibernate.ddl-auto = update

src/main/resources/application.properties

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
2-
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres_demo
3-
spring.datasource.username= rajeevkumarsingh
4-
spring.datasource.password=
2+
#spring.datasource.url=jdbc:postgresql://localhost:5432/postgres_demo
3+
#spring.datasource.username= postgres
4+
#spring.datasource.password= password
5+
6+
spring.datasource.url=${JDBC_DATABASE_URL}
7+
spring.datasource.username=${JDBC_DATABASE_USERNAME}
8+
spring.datasource.password=${JDBC_DATABASE_PASSWORD}
59

610
# The SQL dialect makes Hibernate generate better SQL for the chosen database
711
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect

0 commit comments

Comments
 (0)