Skip to content

Instantly share code, notes, and snippets.

@roberGzt
roberGzt / hola.json
Created January 30, 2019 20:39
Pepep
{"mensaje": "hola"}
Vue.component('form-datos-evento', {
props: {
evento: Object
},
data: function () {
return {
riesgos: []
};
},
watch: {
@roberGzt
roberGzt / test.json
Last active November 27, 2020 20:51
Esto es un gist de prueba.
{
"nombre" : "Esto es un Gist",
"descripcion" : "Gist genera un syntax highlighting del código que insertermos basado en la extensión del archivo",
"unNumero" : 0
}
@roberGzt
roberGzt / pom.xml
Last active July 19, 2019 20:46
Dependency management de spring cloud
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
@roberGzt
roberGzt / pom.xml
Created July 19, 2019 20:24
Dependencia de spring cloud config server
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
@roberGzt
roberGzt / pom.xml
Created July 19, 2019 20:47
Dependencia de spring cloud config server
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
@roberGzt
roberGzt / springCloudServerApp.java
Created July 19, 2019 20:50
configuración java de config server
package com.example.springCloudServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer
public class springCloudServerApp {
@roberGzt
roberGzt / application.properties
Created July 19, 2019 20:52
application.properties de servidor de configuración.
spring.cloud.config.server.git.uri: https://github.com/roberGzt/ConfigData
server.port: 8001
@roberGzt
roberGzt / pom.xml
Created July 19, 2019 21:00
Dependencia de spring cloud config client
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
@roberGzt
roberGzt / bootstrap.yml
Created July 19, 2019 21:04
Configuración bootstrap de cliente.
spring.application.name: lab-3-client
spring.cloud.config.uri: http://localhost:8001
server.port: 8002