- 博客(7)
- 收藏
- 关注
原创 ssm实现用户添加功能
ssm实现用户添加功能1.xml配置文件<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" ><mapper namespace="com.xkf.dao.RoleDao" > <select id="findRo
2020-07-07 14:59:15
1475
原创 ssm框架分页+过滤+模糊查找+批量删除
ssm框架分页+过滤+模糊查找+批量删除1.分页1.1 pageinfo类public class PageInfo<T> { private List<T> list; private int totalPage; private int size; private int totalCount; private int currentPage; public List<T> getList() {
2020-07-03 17:16:56
182
原创 ssm框架增删改查
ssm框架实现用户增删改查1.Dao类public interface UserDao { User findUserByUserName(String username); List<User> findAll(); void deleteById(int id); void add(User user); User selectById(int id); void update(User user);}2.Controller类
2020-07-01 20:23:24
192
原创 servlet-登录
servlet-登录1.bean类public class User {public User(){}public User(int id, String username, String password){this.id=id;this.username=username;this.password=password;}public User(String username, String password){this.username=username;this.passwor
2020-06-29 17:32:40
88
原创 jdbc基础-增删改查
jdbc基础-增删改查1.加载驱动try {Class.forName(“com.mysql.jdbc.Driver”);} catch (ClassNotFoundException e) {e.printStackTrace();}2.创建链接Connection connection = null;try {connection = DriverManager.getConnection(“jdbc:mysql://localhost:3306/wzsxy”,“root”,“123
2020-06-28 16:12:19
99
原创 JAVA基础2-斗地主
JAVA基础2-斗地主创建54张牌下面展示代码写入54张牌并给每张牌标记以便于后面排序并洗乱ArrayList pokes = new ArrayList<>();List colors = new ArrayList<>();List numbers = new ArrayList<>();Map<Integer, String> poker = new HashMap<>();//定义的牌面colors.add(“♥”);co
2020-06-26 23:06:33
83
原创 JAVA基础
JAVA基础1-美女输入美女的身高体重来判断是否属于美女主要代码先设置一个girl类public class Girl {private int high;private int weight;public int getHigh() { return high;}public void setHigh(int high) { this.high = high;}public int getWeight() { return weight;}publi
2020-06-26 22:43:31
157
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人