24.spring配置dbcp并完成CRUD操作

  1.准备jar包

  05_ssm基础(四)之Spring基础二

   2.编辑Product模型

 1 package com.day02.ssm.spring.model;
 2 
 3 public class Product{
 4     private Integer id;
 5     private String productName;  //产品名称
 6     private Integer salePrice;
 7     private Integer costPrice;
 8 
 9     public Integer getId() {
10         return id;
11     }
12 
13     public void setId(Integer id) {
14         this.id = id;
15     }
16 
17     public String getProductName() {
18         return productName;
19     }
20 
21     public void setProductName(String productName) {
22         this.productName = productName;
23     }
24 
25     public Integer getSalePrice() {
26         return salePrice;
27     }
28 
29     public void setSalePrice(Integer salePrice) {
30         this.salePrice = salePrice;
31     }
32 
33     public Integer getCostPrice() {
34         return costPrice;
35     }
36 
37     public void setCostPrice(Integer costPrice) {
38         this.costPrice = costPrice;
39     }
40 }
Product

相关文章:

  • 2021-11-10
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-07-31
  • 2022-01-07
  • 2021-11-19
  • 2021-11-20
  • 2021-04-28
  • 2021-11-26
  • 2021-11-16
相关资源
相似解决方案