Skip to content

Commit 42d9acf

Browse files
committed
Correção - Alterado resolução de perfil para properties
1 parent 1eb98ba commit 42d9acf

File tree

8 files changed

+12
-6
lines changed

8 files changed

+12
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod,oauth-security $JAVA_OPTS -jar target/algamoney*.jar
1+
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod $JAVA_OPTS -jar target/algamoney*.jar
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod,oauth-security $JAVA_OPTS -jar target/algamoney*.jar
1+
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod $JAVA_OPTS -jar target/algamoney*.jar
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod,oauth-security $JAVA_OPTS -jar target/algamoney*.jar
1+
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod $JAVA_OPTS -jar target/algamoney*.jar

7.6 Alternando OAuth 2 e Basic Security com profiles - Spring Boot 2.5.0/algamoney-api/src/main/resources/application.properties

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ spring.jpa.show-sql=true
77

88
spring.jackson.deserialization.fail-on-unknown-properties=true
99

10-
spring.profiles.active=basic-security
10+
spring.profiles.active=basic-security
11+
12+
spring.profiles.group.prod=oauth-security
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod,oauth-security $JAVA_OPTS -jar target/algamoney*.jar
1+
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod $JAVA_OPTS -jar target/algamoney*.jar

7.7 Desafio - Pesquisa de pessoa - Spring Boot 2.5.0/algamoney-api/src/main/resources/application-prod.properties

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ spring.datasource.username={JDBC_DATABASE_USERNAME}
55
spring.datasource.password={JDBC_DATABASE_PASSWORD}
66

77
algamoney.origin-permitida=https://algamoney-angular.herokuapp.com
8+
9+
spring.profiles.group.prod=oauth-security
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod,oauth-security $JAVA_OPTS -jar target/algamoney*.jar
1+
web: java -Dserver.port=$PORT -Dspring.profiles.active=prod $JAVA_OPTS -jar target/algamoney*.jar

7.9 Desafio - Atualização de lançamento - Spring Boot 2.5.0/algamoney-api/src/main/resources/application-prod.properties

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ spring.datasource.username={JDBC_DATABASE_USERNAME}
55
spring.datasource.password={JDBC_DATABASE_PASSWORD}
66

77
algamoney.origin-permitida=https://algamoney-angular.herokuapp.com
8+
9+
spring.profiles.group.prod=oauth-security

0 commit comments

Comments
 (0)