-
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.
-Cambio en la versión de Spring Boot -Creación de perfiles para producción y desarrollo
- Loading branch information
1 parent
0f1e5a5
commit 6d4dc5d
Showing
5 changed files
with
40 additions
and
27 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
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
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 @@ | ||
#Configuración base de datos | ||
spring.datasource.url= jdbc:mysql://localhost:3306/users | ||
spring.datasource.username= root | ||
spring.datasource.password= | ||
spring.datasource.jpa.hibernate.ddl-auto= update | ||
|
||
#Configuración usuario administrador | ||
user.admin.username= marco | ||
user.admin.password= 1234 | ||
|
||
#Configuración JWT | ||
jwt.secret.key= esYG4cI3/jsQ1f3b+25mesq9nXsN7kIU45hPr27FyRxMd7WteShs/5VnXv1YfgMR | ||
jwt.secret.time.expiration= 86400000 |
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,14 @@ | ||
|
||
#Configuración base de datos | ||
spring.datasource.url= ${SPRING_DATASOURCE_URL} | ||
spring.datasource.username= ${SPRING_DATASOURCE_USERNAME} | ||
spring.datasource.password= ${SPRING_DATASOURCE_PASSWORD} | ||
spring.datasource.jpa.hibernate.ddl-auto= ${SPRING_JPA_HIBERNATE_DDL_AUTO} | ||
|
||
#Configuración usuario administrador | ||
user.admin.username= ${USER_ADMIN_USERNAME} | ||
user.admin.password= ${USER_ADMIN_PASSWORD} | ||
|
||
#Configuración JWT | ||
jwt.secret.key= ${JWT_SECRET_KEY} | ||
jwt.secret.time.expiration= ${JWT_TIME_EXPIRATION} |
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 |
---|---|---|
@@ -1,13 +1,4 @@ | ||
#Configuración base de datos | ||
spring.datasource.url: ${SPRING_DATASOURCE_URL} | ||
spring.datasource.username: ${SPRING_DATASOURCE_USERNAME} | ||
spring.datasource.password: ${SPRING_DATASOURCE_PASSWORD} | ||
spring.datasource.jpa.hibernate.ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO} | ||
|
||
#Configuración usuario administrador | ||
user.admin.username: ${USER_ADMIN_USERNAME} | ||
user.admin.password: ${USER_ADMIN_PASSWORD} | ||
|
||
#Configuración JWT | ||
jwt.secret.key: ${JWT_SECRET_KEY} | ||
jwt.secret.time.expiration: ${JWT_TIME_EXPIRATION} | ||
spring.profiles.active = ${SPRING_PROFILES_ACTIVE} | ||
#Permite establecer utf8 en la documentación | ||
server.servlet.encoding.force-response=true | ||
server.servlet.encoding.charset=UTF-8 |