controller层,与界面交互层,test层
test层代码:
package com.nz.test;
import com.nz.entity.BankAccount;
import com.nz.service.JDBCService;
import com.nz.service.impl.JDBCServiceImpl;
import java.util.List;
public class TestMain {
public static void main(String[] args) {
JDBCService jdbcService = new JDBCServiceImpl();
//List<BankAccount> list = jdbcService.JDBCQuery();
BankAccount bankAccount = new BankAccount();
bankAccount.setNum("bao");
bankAccount.setBalance(8.88);
//boolean bl = jdbcService.JDBCAdd(bankAccount);
List<BankAccount> bl = jdbcService.JDBCAddQuery(bankAccount);
System.out.println(bl);
}
}