Java项目:JSP校园运动会管理系统

news2024/11/16 23:52:13

作者主页:源码空间站2022

 简介:Java领域优质创作者、Java项目、学习资料、技术互助

文末获取源码

项目介绍

本项目包含三种角色:运动员、裁判员、管理员;

运动员角色包含以下功能:

运动员登录,个人信息修改,运动成绩查询,比赛项目查询等功能。

裁判员角色包含以下功能:
登录界面,查看运动员,运动成绩查看,录入运动成绩,比赛项目查询等功能。

管理员角色包含以下功能:
登录页面,管理员首页,运动员管理,裁判员管理,运动成绩查询,比赛类型管理等功能。

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可
4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 

5.数据库:MySql 5.7版本;

6.是否Maven项目:否;

技术栈

JSP+Servlet+JavaBean+MySQL+css+javascript

使用说明

1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;
若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中src/util/DB.java配置文件中的数据库配置改为自己的配置;
4. 运行项目,输入localhost:8080/jspyundonghuimanager/ 登录
注:tomcat中配置项目路径必须为jspyundonghuimanager,否则会有异常
管理员账号/密码:admin/admin
学生运动员角色账号/密码:student/123456

裁判老师角色账号/密码:teacher/123456

运行截图

管理员角色

裁判员角色

运动员角色

相关代码 

Cla2SubImpl

package impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import util.DB;
import dao.ICla2Sub;
import entity.Cla2Sub;

public class Cla2SubImpl implements ICla2Sub {
	private Connection conn;
	private PreparedStatement pst;
	private ResultSet rs;

	public int add(Cla2Sub cla2Sub) {
		int i = 0;
		try {
			conn = DB.getConn();
			pst = conn
					.prepareStatement("INSERT INTO cla2sub (cla_id,sub_id,tec_id) VALUES (?,?,?)");
			pst.setInt(1, cla2Sub.getClasses().getId());
			pst.setInt(2, cla2Sub.getSubject().getId());
			pst.setInt(3, cla2Sub.getTeacher().getId());
			i = pst.executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
		return i;
	}

	public void delete(Cla2Sub cla2Sub) {
		try {
			conn = DB.getConn();
			pst = conn
					.prepareStatement("DELETE FROM cla2sub WHERE cla2sub_id = ?");
			pst.setInt(1, cla2Sub.getId());
			pst.executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
	}

	public void update(Cla2Sub cla2Sub) {
		try {
			conn = DB.getConn();
			pst = conn
					.prepareStatement("UPDATE cla2sub SET cla_id = ?, sub_id = ?,tec_id = ? WHERE cla2sub_id = ?");
			pst.setInt(1, cla2Sub.getClasses().getId());
			pst.setInt(2, cla2Sub.getSubject().getId());
			pst.setInt(3, cla2Sub.getTeacher().getId());
			pst.setInt(4, cla2Sub.getId());
			pst.executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
	}

	public Cla2Sub findCla2sub(int cla_id, int tec_id, int sub_id) {
		Cla2Sub cla2sub = new Cla2Sub();
		try {
			conn = DB.getConn();
			pst = conn
					.prepareStatement("SELECT * FROM cla2sub WHERE sub_id = ? AND cla_id = ? AND tec_id = ? order by cla2sub_id");
			pst.setInt(1, sub_id);
			pst.setInt(2, cla_id);
			pst.setInt(3, tec_id);
			rs = pst.executeQuery();
			if (rs.next()) {
				cla2sub.setId(rs.getInt(1));
				cla2sub.setClasses(new ClassesImpl().query("cla_id",
						rs.getString(2)).get(0));
				cla2sub.setSubject(new SubjectImpl().query("sub_id",
						rs.getString(3)).get(0));
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return cla2sub;
	}

	public List<Cla2Sub> query(String type, String value) {
		List<Cla2Sub> list = new ArrayList<Cla2Sub>();
		try {
			conn = DB.getConn();
			if (type.equals("cla2sub_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where cla2sub_id = ? order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("stu_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM student WHERE stu_id = ?) order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("cla_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where cla_id = ? order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("sub_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where sub_id = ? order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("tec_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where tec_id = ? order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("sub_name")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE sub_id IN(SELECT sub_id FROM `subject` WHERE sub_name LIKE ?) order by cla2sub_id");
				pst.setString(1, "%" + value + "%");
			} else if (type.equals("cla_name")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM classes WHERE cla_name LIKE ?) order by cla2sub_id");
				pst.setString(1, "%" + value + "%");
			} else {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub order by cla2sub_id");
			}
			rs = pst.executeQuery();
			while (rs.next()) {
				Cla2Sub cla2Sub = new Cla2Sub();
				cla2Sub.setId(rs.getInt(1));
				cla2Sub.setClasses(new ClassesImpl().query("cla_id",
						rs.getString(2)).get(0));
				cla2Sub.setSubject(new SubjectImpl().query("sub_id",
						rs.getString(3)).get(0));
				cla2Sub.setTeacher(new TeacherImpl().query("tec_id",
						rs.getString(4)).get(0));
				list.add(cla2Sub);
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
		return list;
	}

	public List<Cla2Sub> query(String type, String value, int currentPage) {
		currentPage = (currentPage - 1) * 10;
		List<Cla2Sub> list = new ArrayList<Cla2Sub>();
		try {
			conn = DB.getConn();
			if (type.equals("cla2sub_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where cla2sub_id = ? order by cla2sub_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("stu_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM student WHERE stu_id = ?) order by cla2sub_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			}

			else if (type.equals("cla_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where cla_id = ? order by cla2sub_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("sub_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where sub_id = ? order by cla2sub_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("tec_id")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub where tec_id = ? order by cla2sub_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("sub_name")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE sub_id IN(SELECT sub_id FROM `subject` WHERE sub_name LIKE ?) order by cla2sub_id limit ?,10");
				pst.setString(1, "%" + value + "%");
				pst.setInt(2, currentPage);
			} else if (type.equals("cla_name")) {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM classes WHERE cla_name LIKE ?) order by cla2sub_id limit ?,10");
				pst.setString(1, "%" + value + "%");
				pst.setInt(2, currentPage);
			} else {
				pst = conn
						.prepareStatement("SELECT * FROM cla2sub order by cla2sub_id limit ?,10");
				pst.setInt(1, currentPage);
			}
			rs = pst.executeQuery();
			while (rs.next()) {
				Cla2Sub cla2Sub = new Cla2Sub();
				cla2Sub.setId(rs.getInt(1));
				cla2Sub.setClasses(new ClassesImpl().query("cla_id",
						rs.getString(2)).get(0));
				cla2Sub.setSubject(new SubjectImpl().query("sub_id",
						rs.getString(3)).get(0));
				cla2Sub.setTeacher(new TeacherImpl().query("tec_id",
						rs.getString(4)).get(0));
				list.add(cla2Sub);
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
		return list;
	}

	public int getCountPage(String type, String value) {
		int countPages = 0;
		try {
			conn = DB.getConn();
			if (type.equals("cla2sub_id")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub where cla2sub_id = ?");
				pst.setString(1, value);
			} else if (type.equals("stu_id")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM student WHERE stu_id = ?) order by cla2sub_id");
				pst.setString(1, value);
			} else if (type.equals("cla_id")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub where cla_id = ?");
				pst.setString(1, value);
			} else if (type.equals("sub_id")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub where sub_id = ?");
				pst.setString(1, value);
			} else if (type.equals("tec_id")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub where tec_id = ?");
				pst.setString(1, value);
			} else if (type.equals("sub_name")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub WHERE sub_id IN(SELECT sub_id FROM `subject` WHERE sub_name LIKE ?)");
				pst.setString(1, "%" + value + "%");
			} else if (type.equals("cla_name")) {
				pst = conn
						.prepareStatement("SELECT COUNT(*) FROM cla2sub WHERE cla_id IN(SELECT cla_id FROM classes WHERE cla_name LIKE ?)");
				pst.setString(1, "%" + value + "%");
			} else {
				pst = conn.prepareStatement("SELECT COUNT(*) FROM cla2sub");
			}
			rs = pst.executeQuery();
			while (rs.next()) {
				countPages = rs.getInt(1);
				countPages = countPages % 10 == 0 ? countPages / 10
						: countPages / 10 + 1;
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			DB.close(conn, pst, rs);
		}
		return countPages;
	}
}

ClassesImpl

package impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

import util.DB;
import dao.IClasses;
import entity.Classes;

public class ClassesImpl implements IClasses
{
	private Connection conn;
	private PreparedStatement pst;
	private ResultSet rs;

	public Classes add(Classes classes)
	{
		try
		{
			conn = DB.getConn();
			pst = conn.prepareStatement("INSERT INTO classes (cla_name,maj_id,cla_tec) VALUES (?,?,?)", Statement.RETURN_GENERATED_KEYS);
			pst.setString(1, classes.getName());
			pst.setInt(2, classes.getMajor().getId());
			pst.setString(3, classes.getTecName());
			pst.executeUpdate();
			rs = pst.getGeneratedKeys();
			if (rs.next())
			{
				classes = query("cla_id", rs.getString(1)).get(0);
			}
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
		return classes;
	}

	public void delete(Classes classes)
	{
		try
		{
			conn = DB.getConn();
			pst = conn.prepareStatement("DELETE FROM classes WHERE cla_id = ?");
			pst.setInt(1, classes.getId());
			pst.executeUpdate();
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
	}

	public void update(Classes classes)
	{
		try
		{
			conn = DB.getConn();
			pst = conn.prepareStatement("UPDATE classes SET cla_name = ?,maj_id = ?,cla_tec= ? WHERE cla_id = ?");
			pst.setString(1, classes.getName());
			pst.setInt(2, classes.getMajor().getId());
			pst.setString(3, classes.getTecName());
			pst.setInt(4, classes.getId());
			pst.executeUpdate();
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
	}

	public List<Classes> query(String type, String value)
	{
		ArrayList<Classes> list = new ArrayList<Classes>();
		try
		{
			conn = DB.getConn();
			if (type.equals("cla_id"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_id = ? order by cla_id");
				pst.setString(1, value);
			} else if (type.equals("cla_name"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_name like ? order by cla_id");
				pst.setString(1, "%" + value + "%");
			} else if (type.equals("maj_id"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE maj_id = ? order by cla_id");
				pst.setString(1, value);
			} else if (type.equals("maj_name"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE maj_id IN(SELECT maj_id FROM major WHERE maj_name LIKE ?) order by cla_id");
				pst.setString(1, "%" + value + "%");
			}else if (type.equals("cla_tec"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_tec  LIKE ? order by cla_id");
				pst.setString(1, "%" + value + "%");
			}
			else
			{
				pst = conn.prepareStatement("SELECT * FROM classes order by cla_id");
			}
			rs = pst.executeQuery();
			while (rs.next())
			{
				Classes classes = new Classes();
				classes.setId(rs.getInt(1));
				classes.setName(rs.getString(2));
				classes.setMajor(new MajorImpl().query("maj_id", rs.getString(3)).get(0));
				classes.setTecName(rs.getString(4));
				list.add(classes);
			}
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
		return list;
	}

	public List<Classes> query(String type, String value, int currentPage)
	{
		currentPage = (currentPage - 1) * 10;
		ArrayList<Classes> list = new ArrayList<Classes>();
		try
		{
			conn = DB.getConn();
			if (type.equals("cla_id"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_id = ? order by cla_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("cla_name"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_name like ? order by cla_id limit ?,10");
				pst.setString(1, "%" + value + "%");
				pst.setInt(2, currentPage);
			} else if (type.equals("maj_id"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE maj_id = ? order by cla_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			} else if (type.equals("maj_name"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE maj_id IN(SELECT maj_id FROM major WHERE maj_name LIKE ?) order by cla_id limit ?,10");
				pst.setString(1, "%" + value + "%");
				pst.setInt(2, currentPage);
			} else if (type.equals("cla_tec"))
			{
				pst = conn.prepareStatement("SELECT * FROM classes WHERE cla_tec = ? order by cla_id limit ?,10");
				pst.setString(1, value);
				pst.setInt(2, currentPage);
			}else
			{
				pst = conn.prepareStatement("SELECT * FROM classes order by cla_id limit ?,10");
				pst.setInt(1, currentPage);
			}
			rs = pst.executeQuery();
			while (rs.next())
			{
				Classes classes = new Classes();
				classes.setId(rs.getInt(1));
				classes.setName(rs.getString(2));
				classes.setMajor(new MajorImpl().query("maj_id", rs.getString(3)).get(0));
				classes.setTecName(rs.getString(4));
				list.add(classes);
			}
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
		return list;
	}

	public int getCountPage(String type, String value)
	{
		int countPages = 0;
		try
		{
			conn = DB.getConn();
			if (type.equals("cla_id"))
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes WHERE cla_id = ?");
				pst.setString(1, value);
			} else if (type.equals("cla_name"))
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes WHERE cla_name like ?");
				pst.setString(1, "%" + value + "%");
			} else if (type.equals("maj_id"))
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes WHERE maj_id = ?");
				pst.setString(1, value);
			} else if (type.equals("maj_name"))
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes WHERE maj_id IN(SELECT maj_id FROM major WHERE maj_name LIKE ?)");
				pst.setString(1, "%" + value + "%");
			} else if (type.equals("cla_tec"))
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes WHERE cla_tec = ?");
				pst.setString(1, value);
			} else
			{
				pst = conn.prepareStatement("SELECT COUNT(*) FROM classes");
			}
			rs = pst.executeQuery();
			while (rs.next())
			{
				countPages = rs.getInt(1);
				countPages = countPages % 10 == 0 ? countPages / 10 : countPages / 10 + 1;
			}
		} catch (Exception e)
		{
			e.printStackTrace();
		} finally
		{
			DB.close(conn, pst, rs);
		}
		return countPages;
	}

}

如果也想学习本系统,下面领取。关注并回复:036jsp

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/31453.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【网络安全】——sql注入之奇淫巧技bypass(持续更新中)

作者名&#xff1a;Demo不是emo 主页面链接&#xff1a;主页传送门创作初心&#xff1a;舞台再大&#xff0c;你不上台&#xff0c;永远是观众&#xff0c;没人会关心你努不努力&#xff0c;摔的痛不痛&#xff0c;他们只会看你最后站在什么位置&#xff0c;然后羡慕或鄙夷座右…

微信点餐小程序开发_分享微信点餐小程序可以实现哪些功能

线下餐饮实体店都开始摸索发展网上订餐服务。最多人选择的是入驻外卖平台&#xff0c;但抽成高&#xff0c;推广还要另买流量等问题&#xff0c;也让不少商家入不敷出。在这种情况下&#xff0c;建立自己的微信订餐小程序&#xff0c;做自己的私域流量是另一种捷径。那么&#…

Redis关闭持久化

版本&#xff1a; 7.0.4 一、持久化说明 1、redis默认是开启持久化的 2、默认持久化方式为RDB 二、redis 关闭持久化 关闭 RDB 持久化 1、注释掉原来的持久化规则 # save 3600 1 300 100 60 10000或# save 3600 1 # save 300 100 # save 60 100002、把 save 节点设置为空 s…

GORM CRUD 5 分钟快速上手

文章目录1.ORM 是什么2.GORM 是什么3.安装4.连接 DB5.创建数据表6.增加&#xff08;Create&#xff09;7.查询&#xff08;Read&#xff09;8.更新&#xff08;Update&#xff09;9.删除&#xff08;Delete&#xff09;10.小结参考文献1.ORM 是什么 ORM&#xff08;Object Rel…

Linux文件压缩和解压命令【gzip、gunzip、zip、unzip、tar】【详细总结】

解压和压缩gzip/gunzipgzip 压缩文件gunzip 解压缩文件zip/unzipzip命令语法命令选项实例unzip语法&#xff1a;命令选项实例tar语法实例例一&#xff1a;将文件打包成tar包例二&#xff1a;查阅 tar包内有哪些文件例三&#xff1a;将tar 包解压gzip/gunzip gzip用于解压文件&…

纵目科技冲刺科创板上市:拟募资20亿元,股东阵容强大

11月23日&#xff0c;纵目科技&#xff08;上海&#xff09;股份有限公司&#xff08;下称“纵目科技”&#xff09;在上海证券交易所递交招股书&#xff0c;准备在科创板上市。本次冲刺上市&#xff0c;纵目科技计划募资20亿元&#xff0c;拟用于上海研发中心建设项目、东阳智…

Redis常用指令汇总

文章目录一、5种数据类型二、常用指令汇总三、应用汇总提示&#xff1a;以下是本篇文章正文内容&#xff0c;Redis系列学习将会持续更新 一、5种数据类型 Redis 数据存储格式&#xff1a;  ● redis 自身是一个 Map ,其中所有的数据都是采用 key : value 的形式存储。  ● 数…

【c++】 继承的相关问题

继承无论是那种继承方式&#xff0c;基类继承的私有属性都无法访问不论父类中的属性被啥修饰&#xff0c;都会被子类全盘接收public,protected,private继承private 继承和protected 继承都是类中可以访问&#xff0c;类外无法访问&#xff0c;这有什么区别呐&#xff1f;继承的…

区间信息维护与查询【最近公共祖先LCA 】 - 原理

区间信息维护与查询【最近公共祖先LCA 】 - 原理 最近公共祖先&#xff08;Lowest Common Ancestors&#xff0c;LCA&#xff09;指有根树中距离两个节点最近的公共祖先。 祖先指从当前节点到树根路径上的所有节点。 u 和v 的公共祖先指一个节点既是u 的祖先&#xff0c;又是…

React基础之Context

前文有讲到Vue中的provide透传&#xff0c;祖孙组件之间通信。在react中也有类似的存在&#xff0c;他就是context&#xff0c;context的作用也是让祖孙组件之前通信。 React中&#xff0c;通过createContext方法来创建一个Context对象。 import React, { createContext } fr…

sqli-labs/Less-51

这一关的欢迎界面依然是以sort作为注入点 我们首先来判断一下是否为数字型注入 输入如下 sortrand() 对尝试几次 发现页面并没有发生变化 说明这道题的注入类型属于字符型 然后尝试输入以下内容 sort1 报错了 报错信息如下 我们从报错信息可以知道这道题的注入类型属于单…

JS-基础

JavaScript 基础第一天 01 JavaScript介绍 1.1 JavaScript 注释 单行注释 符号&#xff1a;//作用&#xff1a;//右边这一行的代码会被忽略快捷键&#xff1a;ctrl / 块注释 符号&#xff1a;/* */作用&#xff1a;在/* 和 */ 之间的所有内容都会被忽略快捷键&#xff1a;s…

【附源码】计算机毕业设计JAVA移动在线点菜系统服务端服务端

【附源码】计算机毕业设计JAVA移动在线点菜系统服务端服务端 目运行 环境项配置&#xff1a; Jdk1.8 Tomcat8.5 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&#xff1…

【Unity】TimeLine系列教程——编排剧情!

前言 我们经常会看到游戏中有很多“花里胡哨”的系统&#xff0c;比如这样&#xff1a; 火影忍着疾风传 碧之轨迹S技能 这种效果感觉上像播放视频一样&#xff0c;但是却能将游戏不同的敌人加到镜头里面&#xff0c;有时候甚至根据双方关系还会有不同的反馈。如果是做视频或…

基于DQN的强化学习 快速浏览(基础知识+示例代码)

一、强化学习的基础概念 强化学习中有2个主要的实体&#xff0c;一个是智能体(agent)&#xff0c;另一个是环境(environment)。在强化学习过程中&#xff0c;智能体能够得到的是环境当前的状态(State)&#xff0c;即环境智能体所处环境当前的情况。另一个是上一步获得的环境的…

NePTuNe 论文笔记

NePTuNe:Neural Powered Tucker Network for Knowledge Graph Completion- Introduction- Background- Algorithm- Experiment- Conclusion- CodeShashank Sonkar, Arzoo Katiyar, Richard G.Baraniuk - Introduction 目前的链接预测方法&#xff1a; 张量因式分解&#xff1…

【服务器数据恢复】raidz多块硬盘离线的数据恢复案例

服务器数据恢复环境&#xff1a; 一台采用zfs文件系统的服务器&#xff0c;配备32块硬盘。 服务器故障&#xff1a; 服务器在运行过程中崩溃&#xff0c;经过初步检测没有发现服务器有物理故障&#xff0c;重启服务器后故障依旧&#xff0c;用户联系我们中心要求恢复服务器数据…

SpringBoot: Controller层的优雅实现

目录1. 实现目标2. 统一状态码3. 统一响应体4. 统一异常5. 统一入参校验6. 统一返回结果7. 统一异常处理8. 验证1. 实现目标 优雅校验接口入参响应体格式统一处理异常统一处理 2. 统一状态码 创建状态码接口&#xff0c;所有状态码必须实现这个接口&#xff0c;统一标准 pa…

Eolink 征文活动- -专为开发者设计的一款国产免费 API 协作平台

&#x1f497;wei_shuo的个人主页 &#x1f4ab;wei_shuo的学习社区 &#x1f310;Hello World &#xff01; ▌背景 后端开发的程序员都需要有一个用得顺手的接口测试工具&#xff1b;以前&#xff0c;大家都喜欢用Google开发的一款接口测试工具postman来进行测试&#xff0c;…

Java面向对象三大基本特征之多态

多态性是面向对象编程的又一个重要特征&#xff0c;那么多态是什么呢&#xff1f; 一、多态的概念 1.概念&#xff1a;多态是指在父类中定义的属性和方法被子类继承之后&#xff0c;可以具有不同的数据类型或表现出不同的行为&#xff0c;这使得同一个属性或方法在父类及其各…