Skip to content

Instantly share code, notes, and snippets.

View jaocamp's full-sized avatar
😁

João Rafael Campos da Silva jaocamp

😁
View GitHub Profile
@jaocamp
jaocamp / delivery-eureka-server.yml
Last active July 21, 2017 21:02
Configuração da aplicação Delivery Eureka Server
server:
port: 9091
eureka:
instance:
hostname: localhost
client:
registerWithEureka: true
fetchRegistry: false
serviceUrl:
@jaocamp
jaocamp / bootstrap.yml
Created July 21, 2017 19:35
bootstrap.yml da aplicação delivery-eureka-server
spring:
application:
name: delivery-eureka-server
cloud:
config:
uri: http://localhost:9090
@jaocamp
jaocamp / DeliveryEurekaServerApplication.java
Created July 21, 2017 18:28
Classe principal Delivery Eureka Server
package com.coderef.delivery;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class DeliveryEurekaServerApplication {
@jaocamp
jaocamp / pom.xml
Last active July 21, 2017 18:01
Arquivos de configuração do Maven do Eureka Server do Projeto Delivery
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.coderef</groupId>
<artifactId>delivery-eureka-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
@jaocamp
jaocamp / delivery-sample-config.yml
Created July 6, 2017 02:24
sample-config-app.yml Exemplo para Servidor de configuração.
delivery:
maxOrders: 10
minOrders: 1
@jaocamp
jaocamp / bootstrap.yml
Created July 6, 2017 01:53
bootstrap.yml do delivery-config-server
spring:
application:
name: educafacil-config-server
@jaocamp
jaocamp / application.yml
Created July 5, 2017 23:37
application.yml do delivery-config-server
server:
port: 9090
spring:
cloud:
config:
server:
git:
uri: https://github.com/rafaelcam/delivery-configs
@jaocamp
jaocamp / DeliveryConfigServerApplication.java
Created July 5, 2017 23:17
DeliveryConfigServerApplication
package com.coderef.delivery;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer
public class DeliveryConfigServerApplication {
@jaocamp
jaocamp / pom.xml
Created July 5, 2017 22:31
Arquivo pom do projeto delivery-config-server
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.coderef</groupId>
<artifactId>delivery-config-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
@jaocamp
jaocamp / index.html
Created June 30, 2017 01:13
Page Post Spring MVC Diego Brener
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Exemplo</title>
</head>
<body>
<h1>Página de exemplo</h1>
</body>
</html>