forked from c0de8ug/javaee-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
c0de8ug
committed
Jun 23, 2018
0 parents
commit d4144e8
Showing
1,657 changed files
with
317,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# 交流 | ||
欢迎大家入群一起讨论技术 | ||
|
||
![image](https://pic2.zhimg.com/50/v2-d2992d911b4eb0546b826368d35ac661_hd.jpg) | ||
|
||
# 简介 | ||
这是个简单的教务系统网站,并且结合了图书订购功能,希望这个小DEMO能对大家学习有帮助 | ||
|
||
# 使用技术 | ||
|
||
IoC容器:spring | ||
|
||
web框架:springmvc | ||
|
||
orm框架:mybatis | ||
|
||
安全框架:shiro | ||
|
||
数据源:dbcp2 | ||
|
||
日志: sl4j | ||
|
||
Json: Gson | ||
|
||
前端框架:Bootstrap | ||
|
||
# 起步: | ||
|
||
1.初始化项目 | ||
|
||
1)下载Mysql,创建一个数据库名字为giit,导入create.sql与populate.sql,直接运行其中sql即可 | ||
|
||
2)下载Tomcat | ||
|
||
3)使用Intellij Idea导入项目,之后配置项目启动方式,使用刚才下载好的Tomcat | ||
|
||
4)运行 | ||
|
||
![image](https://pic4.zhimg.com/v2-87231f2eb533cdab3d3e04c7a89457af_b.png) | ||
|
||
# 使用简介: | ||
|
||
1.权限介绍: | ||
|
||
根据导入的populate.sql,运行网站初始时会存在四个权限角色: | ||
|
||
1).管理员,账号为admin | ||
|
||
2).学生,账号为student | ||
|
||
3).教师,账号为teache | ||
|
||
4).供应商,账号为supplier | ||
|
||
*密码均为123456* | ||
|
||
# 功能介绍: | ||
## 1.基本信息功能: | ||
其中可以设置一些基本的学校信息,也就是数据库中的实体-关系,之后就可以基于这些基本的关系信息进行更加复杂的功能,例如选课后可以记录多少学生选择了这门课程,只会教师提交图书后计算图书总数可以通过其中的关系得到 | ||
|
||
1)系部信息 | ||
|
||
2)专业信息 | ||
|
||
3)班级信息 | ||
|
||
4)课程信息 | ||
|
||
5)学生管理 | ||
|
||
![image](https://pic1.zhimg.com/v2-44688d7a989ae25d9db6767a50a208f8_b.png) | ||
|
||
|
||
## 2.图书管理功能: | ||
1)教师上传图书 | ||
|
||
2)秘书审批图书 | ||
|
||
3)查看已审核图书 | ||
|
||
![image](https://pic3.zhimg.com/v2-3ff2f0da17e8609f85da3b61671cf0de_b.png) | ||
|
||
# 数据库表结构: | ||
![image](http://7xi78h.com1.z0.glb.clouddn.com/db.png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.2.4 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<artifactId>com.giit.www.orderbook</artifactId> | ||
<groupId>core</groupId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>war</packaging> | ||
<name>giit</name> | ||
<url>http://maven.apache.org</url> | ||
|
||
|
||
<dependencies> | ||
<!--junit相关包--> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-core</artifactId> | ||
<version>1.3</version> | ||
</dependency> | ||
|
||
<!--shiro相关包--> | ||
<dependency> | ||
<groupId>org.apache.shiro</groupId> | ||
<artifactId>shiro-core</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.shiro</groupId> | ||
<artifactId>shiro-web</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.shiro</groupId> | ||
<artifactId>shiro-quartz</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.shiro</groupId> | ||
<artifactId>shiro-spring</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.shiro</groupId> | ||
<artifactId>shiro-aspectj</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
|
||
<!--mysql数据库连接--> | ||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<version>5.1.38</version> | ||
</dependency> | ||
|
||
|
||
<!-- aspectj相关jar包--> | ||
<dependency> | ||
<groupId>org.aspectj</groupId> | ||
<artifactId>aspectjrt</artifactId> | ||
<version>1.8.8</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.aspectj</groupId> | ||
<artifactId>aspectjweaver</artifactId> | ||
<version>1.8.8</version> | ||
</dependency> | ||
|
||
<!--spring相关包--> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-test</artifactId> | ||
<version>4.2.4.RELEASE</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-context-support</artifactId> | ||
<version>4.2.4.RELEASE</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-jdbc</artifactId> | ||
<version>4.2.4.RELEASE</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-tx</artifactId> | ||
<version>4.2.4.RELEASE</version> | ||
</dependency> | ||
|
||
<!--springmvc--> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-webmvc</artifactId> | ||
<version>4.2.4.RELEASE</version> | ||
</dependency> | ||
|
||
<!--servlet,jsp,jstl--> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
<version>3.0.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.servlet.jsp</groupId> | ||
<artifactId>jsp-api</artifactId> | ||
<version>2.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>jstl</artifactId> | ||
<version>1.2</version> | ||
</dependency> | ||
|
||
|
||
<!--mybatis相关包--> | ||
<dependency> | ||
<groupId>org.mybatis</groupId> | ||
<artifactId>mybatis-spring</artifactId> | ||
<version>1.2.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mybatis</groupId> | ||
<artifactId>mybatis</artifactId> | ||
<version>3.3.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>cglib</groupId> | ||
<artifactId>cglib</artifactId> | ||
<version>3.2.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
<version>1.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.14</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>log4j</groupId> | ||
<artifactId>log4j</artifactId> | ||
<version>1.2.17</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-core</artifactId> | ||
<version>2.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-log4j12</artifactId> | ||
<version>1.7.14</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>ognl</groupId> | ||
<artifactId>ognl</artifactId> | ||
<version>3.1.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.javassist</groupId> | ||
<artifactId>javassist</artifactId> | ||
<version>3.20.0-GA</version> | ||
</dependency> | ||
|
||
<!--数据源--> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-pool2</artifactId> | ||
<version>2.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-dbcp2</artifactId> | ||
<version>2.1</version> | ||
</dependency> | ||
|
||
<!--json parser--> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>2.6</version> | ||
</dependency> | ||
|
||
<!--file upload--> | ||
<dependency> | ||
<groupId>commons-fileupload</groupId> | ||
<artifactId>commons-fileupload</artifactId> | ||
<version>1.3.1</version> | ||
</dependency> | ||
|
||
|
||
|
||
</dependencies> | ||
|
||
<build> | ||
<finalName>giit</finalName> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<includes> | ||
<include>**/*.properties</include> | ||
<include>**/*.xml</include> | ||
<include>**/*.tld</include> | ||
</includes> | ||
<filtering>false</filtering> | ||
</resource> | ||
<resource> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/*.properties</include> | ||
<include>**/*.xml</include> | ||
<include>**/*.tld</include> | ||
</includes> | ||
<filtering>false</filtering> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.mortbay.jetty</groupId> | ||
<artifactId>jetty-maven-plugin</artifactId> | ||
<version>8.1.8.v20121106</version> | ||
<configuration> | ||
<webAppConfig> | ||
<contextPath>/${project.build.finalName}</contextPath> | ||
</webAppConfig> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.codehaus.cargo</groupId> | ||
<artifactId>cargo-maven2-plugin</artifactId> | ||
<version>1.4.18</version> | ||
<configuration> | ||
<container> | ||
<!--tomcat类型 --> | ||
<containerId>tomcat8x</containerId> | ||
<!-- 指定tomcat路径 --> | ||
<home>/home/c0de8ug/software/apache-tomcat-8.0.28</home> | ||
<timeout>300000</timeout> | ||
</container> | ||
<configuration> | ||
<type>existing</type> | ||
<!--指定tomcat路径 --> | ||
<home>/home/c0de8ug/software/apache-tomcat-8.0.28</home> | ||
</configuration> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>cargo-start</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>start</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
|
||
|
||
</build> | ||
|
||
</project> |
Oops, something went wrong.