首先打开idea,然后File->New->Project
单击next
选择以上三项,继续
填写项目名称
生成上图项目,建包时启动类应与建立的包处在同一级下,如上图所示
实体类shop
package com.example.demo.entity;
/**
* 店铺实体类
*/
public class Shop{
//账号
private String account;
//密码
private String password;
//店铺名
private String shop_name;
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getPassword() {
return password;
}
public void setPassword(String password