- 博客(8)
- 收藏
- 关注
原创 JAVA0706作业
UserRolepackage com.zhongruan.bean;public class UserRole { public UserRole() { } public UserRole(int id, int userId, int roleId) { this.id = id; this.userId = userId; this.roleId = roleId; } private int id;
2020-07-16 08:41:48
94
原创 JAVA0703作业
user-list.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitiona
2020-07-15 09:56:04
86
原创 JAVA0702作业
项目Usercontroller@RequestMapping("/findAll.do") public ModelAndView findAll(@RequestParam(defaultValue = "1") int currentPage){ PageInfo<User> pageInfo = userService.findAll(currentPage); ModelAndView modelAndView = new ModelAnd
2020-07-15 01:29:20
75
原创 JAVA0701作业
项目结构## UserControllerpackage com.zhongruan.controller;import com.zhongruan.bean.User;import com.zhongruan.service.IUserService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.
2020-07-14 17:56:38
2270
原创 JAVA0630作业
配置Maven创建工程下载jar包(替换pom当中的properties和dependencies部分) <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.targ
2020-07-14 02:49:57
67
原创 JAVA0629作业
创建工程搭建Tomcat项目创建编码HelloSercletpackage com.zr.servlet;import javax.servlet.*;import java.io.IOException;public class HelloServlet implements Servlet { @Override public void init(ServletConfig servletConfig) throws ServletException {
2020-07-13 09:05:12
68
原创 JAVA0628作业
查package ysq;import ysq.util.DBUtil;import java.sql.*;public class Find { public static void main(String[] args) throws ClassNotFoundException, SQLException { Connection connection= DBUtil.getConnection(); //3.写sql语句 Stri
2020-07-03 07:45:18
186
原创 JAVA 0624作业
package com.zr;import java.util.ArrayList;import java.util.Collections;import java.util.Iterator;import java.util.List;public class card {public card() {}private static <E> void swap(List<E> list, int index1, int index2) { E e = lis
2020-07-03 07:44:29
137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人