forked from tericcabrel/blog-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b228743
commit 237ddfc
Showing
10 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
springboot-caching/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
server.port=8030 | ||
spring.datasource.url=jdbc:mysql://localhost:3307/product-inventory?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secret | ||
|
||
## Hibernate Properties | ||
# The SQL dialect makes Hibernate generate better SQL for the chosen database | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect | ||
|
||
# Prevent hibernate to create a hibernate_sequence table | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
|
||
# Hibernate ddl auto (create, create-drop, validate, update) | ||
spring.jpa.hibernate.ddl-auto=create | ||
spring.jpa.open-in-view=false | ||
spring.jpa.properties.hibernate.dialect.storage_engine=innodb | ||
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true | ||
|
||
# Default value is embedded which mean it only applies if you're running and embedded database. | ||
# always is the solution if you're running an external database. (For load .sql file) | ||
spring.sql.init.mode=NEVER | ||
|
||
# Logging properties | ||
logging.level.web=INFO | ||
|
||
# Log Hibernate SQL queries and parameters | ||
# logging.level.org.hibernate.SQL=DEBUG | ||
# logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE |
11 changes: 11 additions & 0 deletions
11
springboot-custom-validation/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
server.port=4656 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3307/hotels?serverTimezone=UTC&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secretpswd | ||
|
||
## Hibernate properties | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
spring.jpa.hibernate.ddl-auto=update | ||
spring.jpa.show-sql=false | ||
spring.jpa.open-in-view=false |
2 changes: 2 additions & 0 deletions
2
springboot-file-upload/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
app.file.upload-dir=./uploads/files | ||
app.file.storage.mapping=file:~/blog-tutorials/springboot-file-upload/uploads/ |
21 changes: 21 additions & 0 deletions
21
springboot-flyway/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
server.port=4767 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3307/blog?serverTimezone=UTC&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secretpswd | ||
|
||
## Hibernate properties | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
spring.jpa.hibernate.ddl-auto=validate | ||
spring.jpa.show-sql=false | ||
spring.jpa.open-in-view=false | ||
|
||
## Flyway config | ||
spring.flyway.enabled=true | ||
spring.flyway.url=jdbc:mysql://localhost:3307/blog?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true | ||
spring.flyway.user=root | ||
spring.flyway.password=secretpswd | ||
spring.flyway.group=true | ||
spring.flyway.sql-migration-prefix=V | ||
spring.flyway.sql-migration-separator=__ | ||
spring.flyway.sql-migration-suffixes=.sql |
13 changes: 13 additions & 0 deletions
13
springboot-many-to-many-1/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
server.port=8933 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3307/moviedb?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secret | ||
|
||
## Hibernate properties | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
spring.jpa.hibernate.ddl-auto=create | ||
spring.jpa.show-sql=false | ||
spring.jpa.open-in-view=false | ||
spring.jpa.properties.hibernate.dialect.storage_engine=innodb |
13 changes: 13 additions & 0 deletions
13
springboot-many-to-many-2/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
server.port=8933 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3307/moviedb?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secret | ||
|
||
## Hibernate properties | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
spring.jpa.hibernate.ddl-auto=create | ||
spring.jpa.show-sql=false | ||
spring.jpa.open-in-view=false | ||
spring.jpa.properties.hibernate.dialect.storage_engine=innodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
spring.profiles.active=@currentProfile@ |
1 change: 1 addition & 0 deletions
1
springboot-tailwind-css/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
11 changes: 11 additions & 0 deletions
11
springboot-validation/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
server.port=4656 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3307/hotels?serverTimezone=UTC&useSSL=false | ||
spring.datasource.username=root | ||
spring.datasource.password=secretpswd | ||
|
||
## Hibernate properties | ||
spring.jpa.hibernate.use-new-id-generator-mappings=false | ||
spring.jpa.hibernate.ddl-auto=update | ||
spring.jpa.show-sql=false | ||
spring.jpa.open-in-view=false |