
练习
练习
水三文墨
这个作者很懒,什么都没留下…
展开
-
SSM02
public interface StaffMapper { public List<Staff> getStaffList(@Param("departmentType") String dapartmentType, @Param("staffName") String staffName, @Param("staffId") Integer staffId); public Staff getStaffById(@Param("staffId") Integer st.原创 2020-08-03 22:34:31 · 201 阅读 · 0 评论 -
SSM01
public interface LoginUserMapper { public LoginUser getLoginUser(@Param("userName") String userName);}<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.o.原创 2020-08-03 22:12:32 · 192 阅读 · 0 评论 -
Spring+SpringMVC+jdbc
第一步:JdbcUtil 类package com.zll.util;import java.io.IOException;import java.io.InputStream;import java.sql.*;import java.util.Properties;/** * @auther zll * @create 2020/7/21-17:25 */public class JdbcUtil { public static Connection getCon原创 2020-07-21 23:18:28 · 313 阅读 · 0 评论 -
Spring004
第一步:编写UserMapper接口 和UserMapper.xml文件package com.zll.dao;import com.zll.pojo.User;import org.apache.ibatis.annotations.Param;/** * @auther zll * @create 2020/7/20-16:01 */public interface UserMapper { //根据用户id修改信息 public int updateUser(@原创 2020-07-20 18:19:58 · 134 阅读 · 0 评论 -
Spring003
第一步:创建BillMapper接口 ,ProviderMapper接口public interface BillMapper { //根据商品名称(模糊查询),供应商id,是否付款 进行查询 public List<Bill> getBillByProName(Bill bill);}public interface ProviderMapper { public List<Provider> getAllProvider();}.原创 2020-07-16 22:35:28 · 136 阅读 · 0 评论 -
Spring002
练习一:第一步:编写UserDao 接口 和 它的实现类public interface UserDao { public void addNewUser(User user);}public class UserDaoImpl implements UserDao { @Override public void addNewUser(User user) { System.out.println("用户添加成功"); }}第二步:编.原创 2020-07-15 16:57:34 · 101 阅读 · 0 评论 -
Spring001
练习一第一步:创建实体类 Person.javapackage com.spring.beans;/** * @auther zll * @create 2020/7/14-19:00 */public class Person { private String name; private String sayworld; public String getName() { return name; } public void原创 2020-07-15 15:33:33 · 122 阅读 · 0 评论 -
Mybatis003
练习一:1.在接口 BillMapper中添加方法//根据供应商id ,获取这些对应商的订单列表信息(数组入参) public List<Bill> getBillByProviderArray(Integer[] ids); //根据供应商id ,获取这些对应商的订单列表信息(List入参) public List<Bill> getBillByProviderList(List<Integer> idlist);2.在Bill.原创 2020-07-10 19:52:47 · 365 阅读 · 0 评论 -
Mybatis002
1.实体类Bill.javapackage com.bean;import java.util.Date;/** * @auther zll * @create 2020/7/9-18:03 */public class Bill { private int id; private String billCode; private String productName; private String productDesc; private St原创 2020-07-09 20:20:14 · 187 阅读 · 0 评论 -
Mybatis001
类结构:第一步:创建mybatis-config.xml<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration> <proper.原创 2020-07-09 19:17:17 · 244 阅读 · 0 评论