增加 spring cloud 用例
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.heibaiying</groupId>
|
||||
<groupId>com.heibaiying.ribbon</groupId>
|
||||
<artifactId>spring-cloud-ribbon</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
@ -13,4 +13,6 @@ public interface IProductService {
|
||||
Product queryProductById(int id);
|
||||
|
||||
List<Product> queryAllProducts();
|
||||
|
||||
void saveProduct(Product product);
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ import java.util.Date;
|
||||
public class Product implements Serializable {
|
||||
|
||||
// 产品序列号
|
||||
private int id;
|
||||
private long id;
|
||||
|
||||
// 产品名称
|
||||
private String name;
|
||||
|
Reference in New Issue
Block a user