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
| spring.datasource.url=jdbc:mysql://localhost:3306/DATABASE_NAME | |
| #?createDatabaseIfNotExist=true | |
| # &userSSL=false | |
| # &serverTimezone=UTC | |
| # ... | |
| spring.datasource.username=USER | |
| spring.datasource.password=PASSWORD | |
| spring.jpa.hibernate.ddl-auto=update |
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
| FROM ubuntu:latest AS build | |
| RUN apt-get update | |
| RUN apt-get install openjdk-21-jdk -y | |
| COPY . . | |
| RUN apt-get install maven -y | |
| RUN mvn clean install |
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
| <?php | |
| //Globais | |
| $clientes = []; | |
| $contas = []; | |
| //Cliente que sempre existe | |
| // $cliente = [ | |
| // "nome" => "John Doe", | |
| // "cpf" => "00000000000", //11 digitos |
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
| <?php | |
| $pokeNome = readline("informe o pokémon: "); | |
| $url = "https://pokeapi.co/api/v2/pokemon/$pokeNome"; | |
| $arquivo = file_get_contents($url); | |
| $pokemon = json_decode($arquivo, true); |
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
| function cineFind(movieName){ | |
| const apiUrl = `https://api.themoviedb.org/3/search/movie?api_key=2dbca7a779fef19d8dc0acc77384df5a&query=${movieName}&language=pt-BR`; | |
| fetch(apiUrl) | |
| .then(response => response.json()) | |
| .then(data => { | |
| if (data.results.length > 0) { | |
| const movie = data.results[0]; | |
| document.getElementById('results').innerHTML += |
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
| public interface OrdemServicoRepository extends JpaRepository<OrdemServico, Long> { | |
| } |
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
| public interface ComentarioRepository extends JpaRepository<Comentario, Long> { | |
| } |
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
| public interface ClienteRepository extends JpaRepository<Cliente, Long> { | |
| } |
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
| public enum StatusOrdemServico { | |
| ABERTA, FINALIZADA, CANCELADA; | |
| } |
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
| public class OrdemServico { | |
| private Long id; | |
| private String descricao; | |
| private Double preco; | |
| private LocalDateTime dataAbertura; |