智慧校园-实验室预约平台2 项目搭建(附源码和数据库)

目录

1、项目创建

2、配置pom.xml文件

3、配置数据库

4、创建登录页面

5、启动程序

 6、源码和数据库下载地址


1、项目创建

建立maven项目

2、配置pom.xml文件

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>com.web</groupId>
	<artifactId>ZHPT</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>jar</packaging>

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.1.RELEASE</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
	<properties>
		<java.version>1.8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jdbc</artifactId>
		</dependency>

		<!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->

		<dependency>
			<groupId>com.microsoft.sqlserver</groupId>
			<artifactId>mssql-jdbc</artifactId>

			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.tomcat.embed</groupId>
			<artifactId>tomcat-embed-jasper</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>

			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
			<version>20160810</version>
		</dependency>
		<dependency>
			<groupId>net.sf.json-lib</groupId>
			<artifactId>json-lib</artifactId>
			<version>2.4</version>
			<classifier>jdk15</classifier>
		</dependency>

		<dependency>
			<groupId>org.wso2.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.3.1.wso2v1</version>
		</dependency>


		<!-- 中文简拼 -->
		<dependency>
			<groupId>com.belerweb</groupId>
			<artifactId>pinyin4j</artifactId>
			<version>2.5.0</version>
		</dependency>
		<!--websocket -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-websocket</artifactId>
		</dependency>
		<!--fastjson -->
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>fastjson</artifactId>
			<version>1.2.47</version>
		</dependency>
		<!-- ftp依赖包 -->
		<dependency>
			<groupId>commons-net</groupId>
			<artifactId>commons-net</artifactId>
			<version>3.6</version>
		</dependency>
		<dependency>
			<groupId>com.microsoft</groupId>
			<artifactId>sqljdbc4</artifactId>
			<version>3.0</version>
			<scope>system</scope>
			<systemPath>${basedir}/lib/sqljdbc4-3.0.jar</systemPath>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>

				<configuration>
					<mainClass>com.web.StartApp</mainClass>
					<includeSystemScope>true</includeSystemScope>
				</configuration>
			</plugin>

		</plugins>
		<resources>
			<resource>
				<directory>lib</directory>
				<targetPath>BOOT-INF/lib</targetPath>
				<includes>
					<include>**/*.jar</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/**</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/webapp</directory>
				<targetPath>META-INF/resources</targetPath>
				<includes>
					<include>**/**</include>
				</includes>
			</resource>
		</resources>
	</build>
</project>

3、配置数据库

spring:
  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://127.0.0.1;databaseName=ZHPT
    username: sa
    password: 

4、创建登录页面

<body
	style="background: url(../../files/image/login/bg.png);height: 100%;  width: 100%; background-size: cover; overflow-y: hidden;">
	<div id="title" style="position: absolute;margin-top: 6%;margin-left: 10%;">
		<label style="font-size: 50px;font-weight: bold;font-family: 仿宋;color:white;">智慧校园管理平台</label>
		<label style="font-size: 45px;font-weight: bold;font-family: 仿宋;color:white;"></label>
	</div>
	<div id="login" style="height: 400px;width: 300px;position: absolute;right: 15%;top: 20%;
		-webkit-box-shadow: 1px 0px 15px #696969;border-radius:10px;
		background: rgba(255, 255, 255, 0.45) none repeat scroll 0 0 !important;padding: 25px 20px 20px 20px;">
		<div style="width: 100%;text-align: center;margin-bottom: 20px;">
			<label style="font-size: 28px;">欢迎登录</label>
		</div>
		<hr/>
		<div style="width: 100%;padding: 30px 10px 15px 10px;">
			<input id="username" type="text" placeholder="请输入账号" style="height: 40px;width: 90%;border: 0px;font-size: 18px;border-radius:5px;padding-left: 10px;"/>
			<br/><br/>
			<input id="pwd" type="password" placeholder="请输入密码" style="height: 40px;width: 90%;border: 0px;font-size: 18px;border-radius:5px;padding-left: 10px;"/>
			<br/><br/>
			<input type="checkbox" style="height: 17px;width: 17px;vertical-align:middle;"/><label style="">记住密码</label>
			<br/><br/>
			<div onclick="login()" style="width: 93%;height:40px; border-radius:5px;background-color: #9400D3;text-align: center;padding-top: 5px;margin-bottom: 20px;">
				<label style="font-size: 25px;color: white;">登&nbsp;&nbsp;&nbsp;&nbsp;录</label>
			</div>
			<a href="#" style="text-decoration:none;">找回密码</a>
			<label>丨还没有注册账号?</label>
			<a href="#" style="text-decoration:none;" onclick="register()">立即注册</a>
			<br/><br/>
			<a href="#" onclick="touch()" style="text-decoration:none;margin-right: 20px; color: white;font-size: 15px;">关于我们</a>
			<a href="#" style="text-decoration:none;margin-right: 20px;color: white;font-size: 15px;" onclick="join()">加入我们</a>
			<a href="#" style="text-decoration:none;color: white;font-size: 15px;" onclick="touch()">联系我们</a>
		</div>
	</div>
	<div id="bottom" style="position: absolute;bottom: 0px;width: 98%;text-align: center;display: none;">
		
	</div>
</body>

5、启动程序

访问登录页,项目搭建完成。

 6、源码和数据库下载地址

源码和数据库下载地址

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
项目背景:全校开放性实验室预约系统是一个让学生通过网上报名预约实验的系统。由于学生对实验的需求很多,而教师人数有限,这使得学生做实验时遇到问题不能得到及时解决,从而导致实验很难继续下去,这样实验难以达到预期目的。因此,必须准确地了解学生对实验的内容和时间等的要求,才能有效地安排教师辅导。“全校开放性实验室预约系统”通过学生网上预约实验的方式,为实验室妥善安排提供可靠的依据。 使用说明: 学期管理 管理员可以添加、修改、删除学期。 特别注意:只能有一个学期为活动学期,学生只能预约这个学期的实验项目;老师只能查看、编辑这个学期的实验批次。 实验项目管理 一个学期可以有不同的实验科目,一个实验科目又有不同的实验项目。管理员可以添加、修改、删除实验项目。 特别注意:在输入实验项目时,遇到没有在实验科目列表中出现的实验科目,直接手动输入,保存后就自动添加到列表中。 实验项目批次 一个实验项目可以分为不同的实验批次进行。管理员可以针对某个实验项目进行实验批次的添加、修改、删除。一个实验批次,可以有多个学生参与,但不能超过实验批次的容量。管理员可以对某个实验批次里的学生进行添加、评分、删除操作。 老师管理 管理员可以添加、修改、删除老师信息。 特别注意:老师的平台账号不能为空而且不能重复,因为老师登入系统就是用这个账号。 学生管理 管理员可以添加、修改、删除学生信息。 特别注意:学号不能为空而且不能重复.学生登入时候使用学号登入.
基于java实验室网上预约系统设计与实现 技术:后端:java,前端:html+js+css 框架:springBoot SSM 运行工具:idea 数据库:mysql 源码:详见文章最后 1、    登录页面: 2、首页 3、用户管理  4、添加用户  5、角色管理  6、添加角色  7、编辑角色 8、预约管理  9、新增预约  10、数据统计 数据库脚本如下: CREATE TABLE `sys_user_t` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `role_id` VARCHAR(500) NULL DEFAULT NULL COMMENT '角色ID', `user_id` VARCHAR(50) NOT NULL COMMENT '用户ID', `user_name` VARCHAR(100) NOT NULL COMMENT '用户名', `status` VARCHAR(50) NOT NULL COMMENT '是否有效0:false\\\\\\\\1:true', `create_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `create_by` VARCHAR(100) NULL DEFAULT NULL, `last_update_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `last_update_by` VARCHAR(100) NULL DEFAULT NULL, `password` VARCHAR(128) NOT NULL, `tenantcode` VARCHAR(50) NOT NULL, `diskId` VARCHAR(500) NULL DEFAULT NULL, `remarks` VARCHAR(500) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) COMMENT='系统用户表' COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=52 ; CREATE TABLE `sys_role_t` ( `role_id` INT(11) NOT NULL COMMENT '角色ID', `role_name` VARCHAR(200) NOT NULL COMMENT '权限名称', `status` INT(11) NOT NULL COMMENT '是否有效0:true\\\\1:false', `create_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `create_by` VARCHAR(100) NULL DEFAULT NULL, `last_update_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `last_update_by` VARCHAR(100) NULL DEFAULT NULL ) COMMENT='系统角色表' COLLATE='utf8_general_ci' ENGINE=InnoDB ; CREATE TABLE `sys_menu_t` ( `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '序列', `parent_id` VARCHAR(50) NOT NULL COMMENT '父节点ID', `menu_id` VARCHAR(50) NOT NULL COMMENT '菜单ID', `menu_name` VARCHAR(200) NOT NULL COMMENT '菜单名称', `menu_url` VARCHAR(200) NULL DEFAULT NULL COMMENT '菜单URL', `status` INT(11) NOT NULL COMMENT '有效(0有效,1失效)', `create_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `create_by` VARCHAR(200) NULL DEFAULT NULL, `last_update_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `last_update_by` VARCHAR(200) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) COMMENT='菜单表' COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=33 ; CREATE TABLE `client_manager_t` ( `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '序列', `clientId` VARCHAR(50) NULL DEFAULT NULL COMMENT '客户编号', `clientName` VARCHAR(50) NULL DEFAULT NULL COMMENT '客户姓名', `address` VARCHAR(200) NULL DEFAULT NULL COMMENT '客户住址', `source` VARCHAR(200) NULL DEFAULT NULL COMMENT '客户所属公司', `sourceDate` VARCHAR(200) NULL DEFAULT NULL COMMENT '客户发展时间', `status` VARCHAR(200) NULL DEFAULT NULL COMMENT '客户级别', `clientNum` VARCHAR(200) NULL DEFAULT NULL COMMENT '拜访客户次数', `isTrue` VARCHAR(200) NULL DEFAULT NULL COMMENT '客户是否有效', PRIMARY KEY (`id`) ) COMMENT='客户人员信息表' COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=47 ;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小小工具箱

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值