Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6ec4e8c

Browse files
add: Using Profiles in Spring Boot Blog App
1 parent 2b06362 commit 6ec4e8c

File tree

4 files changed

+40
-11
lines changed

4 files changed

+40
-11
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring.datasource.url=jdbc:mysql://localhost:3306/myblog
2+
spring.datasource.username=bestuser
3+
spring.datasource.password=bestuser
4+
5+
# hibernate properties
6+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
7+
8+
# hibernate ddl auto (create, create-drop, validate, update)
9+
spring.jpa.hibernate.ddl-auto=update
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring.datasource.url=jdbc:mysql://localhost:3306/myblog
2+
spring.datasource.username=bestuser
3+
spring.datasource.password=bestuser
4+
5+
# hibernate properties
6+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
7+
8+
# hibernate ddl auto (create, create-drop, validate, update)
9+
spring.jpa.hibernate.ddl-auto=update
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring.datasource.url=jdbc:mysql://localhost:3306/myblog
2+
spring.datasource.username=bestuser
3+
spring.datasource.password=bestuser
4+
5+
# hibernate properties
6+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
7+
8+
# hibernate ddl auto (create, create-drop, validate, update)
9+
spring.jpa.hibernate.ddl-auto=update
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
spring.datasource.url=jdbc:mysql://localhost:3306/myblog
2-
spring.datasource.username=bestuser
3-
spring.datasource.password=bestuser
4-
# hibernate properties
5-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
6-
# hibernate ddl auto (create, create-drop, validate, update)
7-
spring.jpa.hibernate.ddl-auto=update
8-
#spring.security.user.name=user
9-
#spring.security.user.password=user
10-
#spring.security.user.roles=ADMIN
1+
#spring.datasource.url=jdbc:mysql://localhost:3306/myblog
2+
#spring.datasource.username=bestuser
3+
#spring.datasource.password=bestuser
4+
## hibernate properties
5+
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
6+
## hibernate ddl auto (create, create-drop, validate, update)
7+
#spring.jpa.hibernate.ddl-auto=update
8+
##spring.security.user.name=user
9+
##spring.security.user.password=user
10+
##spring.security.user.roles=ADMIN
1111

1212
#secret javaproject
1313
app.jwt-secret=ce02356f9917223373f26bb97ef5c3e4fafef9cde898bf9cf960e7d08e74ffef
14-
app-jwt-expiration-milliseconds=604800000
14+
app-jwt-expiration-milliseconds=604800000
15+
16+
spring.profiles.active=dev

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /