首页>代码>Spring Cloud搭建Eureka Server服务注册发现Eureka Client简单实例>/eureka-service-discovery/bookstore-service/src/main/java/com/memorynotfound/cloud/Book.java
package com.memorynotfound.cloud; import java.math.BigDecimal; public class Book { private Integer id; private String name; private BigDecimal price; public Book() { } public Book(Integer id, String name, BigDecimal price) { this.id = id; this.name = name; this.price = price; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } @Override public String toString() { return "Book{" + "id=" + id + ", name='" + name + '\'' + ", price=" + price + '}'; } }