Skip to content

Instantly share code, notes, and snippets.

@roberGzt
roberGzt / lab-3-client.yml
Created Jul 19, 2019
archivo de configuraciones de un cliente.
View lab-3-client.yml
nombre: pepe
lema: '{cipher}ffc41018aa269fe18779beb2b291b5d573729ae9b80b2594e05232ec3de76b1e'
management.endpoints.web.exposure.include: "*"
@roberGzt
roberGzt / bootstrap.yml
Created Jul 19, 2019
Configuración bootstrap de cliente.
View bootstrap.yml
spring.application.name: lab-3-client
spring.cloud.config.uri: http://localhost:8001
server.port: 8002
@roberGzt
roberGzt / pom.xml
Created Jul 19, 2019
Dependencia de spring cloud config client
View pom.xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
@roberGzt
roberGzt / application.properties
Created Jul 19, 2019
application.properties de servidor de configuración.
View application.properties
spring.cloud.config.server.git.uri: https://github.com/roberGzt/ConfigData
server.port: 8001
@roberGzt
roberGzt / springCloudServerApp.java
Created Jul 19, 2019
configuración java de config server
View springCloudServerApp.java
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 / pom.xml
Created Jul 19, 2019
Dependencia de spring cloud config server
View pom.xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
@roberGzt
roberGzt / pom.xml
Created Jul 19, 2019
Dependencia de spring cloud config server
View pom.xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
@roberGzt
roberGzt / pom.xml
Last active Jul 19, 2019
Dependency management de spring cloud
View pom.xml
<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 / test.json
Created Feb 1, 2019
Esto es un gist de prueba.
View test.json
{
"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
}
View test.js
Vue.component('form-datos-evento', {
props: {
evento: Object
},
data: function () {
return {
riesgos: []
};
},
watch: {
You can’t perform that action at this time.