This file contains hidden or 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
| version: "3.9" | |
| services: | |
| # Base de dados MySQL | |
| alunos-mysql: | |
| image: "mysql:latest" | |
| container_name: "alunos-mysql" | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: alunos | |
| networks: |
This file contains hidden or 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
| version: "3.9" | |
| services: | |
| # Base de dados MySQL | |
| alunos-mysql: | |
| image: "mysql:latest" | |
| container_name: "alunos-mysql" | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: alunos | |
| networks: |
This file contains hidden or 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
| version: '3' | |
| services: | |
| mongo: | |
| image: mongo | |
| ports: | |
| - 27017:27017 | |
| container_name: mongo | |
| networks: | |
| - spring-cloud-network | |
| expose: |
This file contains hidden or 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
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import org.apache.commons.codec.binary.Base64; | |
| import org.springframework.http.HttpRequest; | |
| import org.springframework.http.client.ClientHttpRequestExecution; | |
| import org.springframework.http.client.ClientHttpRequestInterceptor; | |
| import org.springframework.http.client.ClientHttpResponse; | |
| /** |
This file contains hidden or 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
| package global | |
| import play.api._ | |
| import play.api.mvc._ | |
| import play.api.Play.current | |
| import play.api.http.HeaderNames._ | |
| import play.api.mvc.Results._ | |
| import scala.concurrent.Future | |
| import play.api.libs.concurrent.Execution.Implicits.defaultContext |
This file contains hidden or 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
| package models.dao | |
| import scala.concurrent.ExecutionContext | |
| import scala.concurrent.Future | |
| import play.api.Play.current | |
| import play.modules.reactivemongo.ReactiveMongoPlugin | |
| import reactivemongo.api.collections.default.BSONCollection | |
| import reactivemongo.bson.BSONDocument | |
| import reactivemongo.bson.BSONDocumentIdentity |