Skip to content

Commit

Permalink
update: gitignore & application.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nanna29 committed Jul 23, 2024
1 parent a6dde2c commit 4aad4ca
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@ out/
/.nb-gradle/

### VS Code ###
.vscode/

### Properties ###
application.properties
application-prod.properties
.vscode/
11 changes: 11 additions & 0 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
spring.application.name=server


# spring data source
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# spring jpa
spring.jpa.database=mysql
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=true
17 changes: 17 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spring.application.name=server


# spring data source
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/kkijuk?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
spring.datasource.username=test
spring.datasource.password=testPW

# spring jpa
spring.jpa.database=mysql
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=true


commit.hash=local
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void updateMaster() throws Exception {
.content(content)
.build());

Long id = masterIntroduce.getId(); // Retrieve the ID of the saved entity
Long id = masterIntroduce.getId();

String expectedOneLiner = "one-liner2";
String expectedSubTitle = "sub-title2";
Expand Down
17 changes: 17 additions & 0 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spring.application.name=server


# spring data source
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/kkijuk?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
spring.datasource.username=test
spring.datasource.password=testPW

# spring jpa
spring.jpa.database=mysql
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=true


commit.hash=local

0 comments on commit 4aad4ca

Please sign in to comment.