Skip to content

Instantly share code, notes, and snippets.

View geovannymcode's full-sized avatar

Geovanny Mendoza geovannymcode

View GitHub Profile
@geovannymcode
geovannymcode / OrderController.java
Created June 7, 2024 19:36
Ejemplo Práctico: Microservicios de Pedidos y Productos con Spring Boot
@SpringBootApplication
public class OrderServiceApplication {
public static void main(String[] args) {
SpringApplication.run(OrderServiceApplication.class, args);
}
}
@RestController
@RequestMapping("/orders")
public class OrderController {
package com.gmendozag.co.Entity;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
@Entity
public class Cliente {