├── .gitattributes
├── .idea
├── artifacts
│ └── project_war_exploded.xml
├── encodings.xml
├── libraries
│ ├── Spring_4_3_18_RELEASE.xml
│ └── Spring_MVC_4_3_18_RELEASE.xml
├── misc.xml
├── modules.xml
├── vcs.xml
└── workspace.xml
├── README.md
├── lib
├── aopalliance-1.0.jar
├── commons-logging-1.2.jar
├── ext
│ ├── classmate-0.8.0.jar
│ ├── commons-fileupload-1.3.3.jar
│ ├── commons-io-2.6.jar
│ ├── hibernate-validator-5.0.1.Final.jar
│ ├── jboss-logging-3.1.1.GA.jar
│ ├── mybatis-3.4.6.jar
│ ├── mysql-connector-java-5.1.46-bin.jar
│ └── validation-api-1.1.0.Final.jar
├── spring-aop-4.3.18.RELEASE.jar
├── spring-aspects-4.3.18.RELEASE.jar
├── spring-beans-4.3.18.RELEASE.jar
├── spring-context-4.3.18.RELEASE.jar
├── spring-context-support-4.3.18.RELEASE.jar
├── spring-core-4.3.18.RELEASE.jar
├── spring-expression-4.3.18.RELEASE.jar
├── spring-instrument-4.3.18.RELEASE.jar
├── spring-instrument-tomcat-4.3.18.RELEASE.jar
├── spring-jdbc-4.3.18.RELEASE.jar
├── spring-jms-4.3.18.RELEASE.jar
├── spring-messaging-4.3.18.RELEASE.jar
├── spring-orm-4.3.18.RELEASE.jar
├── spring-oxm-4.3.18.RELEASE.jar
├── spring-test-4.3.18.RELEASE.jar
├── spring-tx-4.3.18.RELEASE.jar
├── spring-web-4.3.18.RELEASE.jar
├── spring-webmvc-4.3.18.RELEASE.jar
├── spring-webmvc-portlet-4.3.18.RELEASE.jar
└── spring-websocket-4.3.18.RELEASE.jar
├── out
├── artifacts
│ └── project_war_exploded
│ │ ├── WEB-INF
│ │ ├── applicationContext.xml
│ │ ├── classes
│ │ │ ├── me
│ │ │ │ └── iwts
│ │ │ │ │ ├── bean
│ │ │ │ │ ├── Admin.class
│ │ │ │ │ ├── Tourism.class
│ │ │ │ │ ├── TourismOrder.class
│ │ │ │ │ └── User.class
│ │ │ │ │ ├── controller
│ │ │ │ │ ├── AdminController.class
│ │ │ │ │ ├── TourismController.class
│ │ │ │ │ ├── TourismOrderController.class
│ │ │ │ │ ├── UserController.class
│ │ │ │ │ └── ViewController.class
│ │ │ │ │ ├── listener
│ │ │ │ │ └── ContextListener.class
│ │ │ │ │ ├── mapper
│ │ │ │ │ ├── AdminMapper.class
│ │ │ │ │ ├── AdminMapper.xml
│ │ │ │ │ ├── TourismMapper.class
│ │ │ │ │ ├── TourismMapper.xml
│ │ │ │ │ ├── TourismOrderMapper.class
│ │ │ │ │ ├── TourismOrderMapper.xml
│ │ │ │ │ ├── UserMapper.class
│ │ │ │ │ └── UserMapper.xml
│ │ │ │ │ └── tools
│ │ │ │ │ └── ViewTool.class
│ │ │ ├── mybatis-config.xml
│ │ │ ├── mysql.properties
│ │ │ └── properties
│ │ │ │ └── user.properties
│ │ ├── dispatcher-servlet.xml
│ │ ├── lib
│ │ │ ├── aopalliance-1.0.jar
│ │ │ ├── classmate-0.8.0.jar
│ │ │ ├── commons-fileupload-1.3.3.jar
│ │ │ ├── commons-io-2.6.jar
│ │ │ ├── commons-logging-1.2.jar
│ │ │ ├── hibernate-validator-5.0.1.Final.jar
│ │ │ ├── jboss-logging-3.1.1.GA.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── mybatis-3.4.6.jar
│ │ │ ├── mysql-connector-java-5.1.46-bin.jar
│ │ │ ├── spring-aop-4.3.18.RELEASE.jar
│ │ │ ├── spring-aspects-4.3.18.RELEASE.jar
│ │ │ ├── spring-beans-4.3.18.RELEASE.jar
│ │ │ ├── spring-context-4.3.18.RELEASE.jar
│ │ │ ├── spring-context-support-4.3.18.RELEASE.jar
│ │ │ ├── spring-core-4.3.18.RELEASE.jar
│ │ │ ├── spring-expression-4.3.18.RELEASE.jar
│ │ │ ├── spring-instrument-4.3.18.RELEASE.jar
│ │ │ ├── spring-instrument-tomcat-4.3.18.RELEASE.jar
│ │ │ ├── spring-jdbc-4.3.18.RELEASE.jar
│ │ │ ├── spring-jms-4.3.18.RELEASE.jar
│ │ │ ├── spring-messaging-4.3.18.RELEASE.jar
│ │ │ ├── spring-orm-4.3.18.RELEASE.jar
│ │ │ ├── spring-oxm-4.3.18.RELEASE.jar
│ │ │ ├── spring-test-4.3.18.RELEASE.jar
│ │ │ ├── spring-tx-4.3.18.RELEASE.jar
│ │ │ ├── spring-web-4.3.18.RELEASE.jar
│ │ │ ├── spring-webmvc-4.3.18.RELEASE.jar
│ │ │ ├── spring-webmvc-portlet-4.3.18.RELEASE.jar
│ │ │ ├── spring-websocket-4.3.18.RELEASE.jar
│ │ │ └── validation-api-1.1.0.Final.jar
│ │ ├── view
│ │ │ ├── about.jsp
│ │ │ ├── add_success.jsp
│ │ │ ├── admin_console.jsp
│ │ │ ├── details.jsp
│ │ │ ├── index.jsp
│ │ │ ├── login.jsp
│ │ │ ├── my_order.jsp
│ │ │ ├── profile.jsp
│ │ │ ├── register.jsp
│ │ │ ├── register_success.jsp
│ │ │ ├── remove_tourism.jsp
│ │ │ ├── tourism.jsp
│ │ │ └── tourism_console.jsp
│ │ └── web.xml
│ │ ├── css
│ │ ├── animate.css
│ │ ├── bootstrap-theme.css
│ │ ├── bootstrap-theme.css.map
│ │ ├── bootstrap-theme.min.css
│ │ ├── bootstrap-theme.min.css.map
│ │ ├── bootstrap.css
│ │ ├── bootstrap.css.map
│ │ ├── bootstrap.min.css
│ │ ├── bootstrap.min.css.map
│ │ ├── d_main.css
│ │ ├── index.css
│ │ ├── list.css
│ │ ├── main.css
│ │ ├── signin.css
│ │ └── tourism.css
│ │ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ │ ├── images
│ │ ├── bag.jpg
│ │ ├── cost_bargin.png
│ │ ├── cost_bargin_more.png
│ │ ├── cost_bg.png
│ │ ├── db
│ │ │ ├── beijing.jpg
│ │ │ ├── default.jpg
│ │ │ ├── luoyang.jpg
│ │ │ └── taiyangdao.jpg
│ │ ├── enjoy.jpg
│ │ ├── flym.jpg
│ │ ├── order.png
│ │ ├── show.png
│ │ ├── train.jpg
│ │ ├── user.jpg@64h_64w_2e
│ │ └── warning.jpg
│ │ ├── index.jsp
│ │ └── js
│ │ ├── bootstrap.js
│ │ ├── bootstrap.min.js
│ │ ├── jquery-3.1.1.js
│ │ └── npm.js
└── production
│ └── project
│ ├── me
│ └── iwts
│ │ ├── bean
│ │ ├── Admin.class
│ │ ├── Tourism.class
│ │ ├── TourismOrder.class
│ │ └── User.class
│ │ ├── controller
│ │ ├── AdminController.class
│ │ ├── TourismController.class
│ │ ├── TourismOrderController.class
│ │ ├── UserController.class
│ │ └── ViewController.class
│ │ ├── listener
│ │ └── ContextListener.class
│ │ ├── mapper
│ │ ├── AdminMapper.class
│ │ ├── AdminMapper.xml
│ │ ├── TourismMapper.class
│ │ ├── TourismMapper.xml
│ │ ├── TourismOrderMapper.class
│ │ ├── TourismOrderMapper.xml
│ │ ├── UserMapper.class
│ │ └── UserMapper.xml
│ │ └── tools
│ │ └── ViewTool.class
│ ├── mybatis-config.xml
│ ├── mysql.properties
│ └── properties
│ └── user.properties
├── project.iml
├── src
├── me
│ └── iwts
│ │ ├── bean
│ │ ├── Admin.java
│ │ ├── Tourism.java
│ │ ├── TourismOrder.java
│ │ └── User.java
│ │ ├── controller
│ │ ├── AdminController.java
│ │ ├── TourismController.java
│ │ ├── TourismOrderController.java
│ │ ├── UserController.java
│ │ └── ViewController.java
│ │ ├── listener
│ │ └── ContextListener.java
│ │ ├── mapper
│ │ ├── AdminMapper.java
│ │ ├── AdminMapper.xml
│ │ ├── TourismMapper.java
│ │ ├── TourismMapper.xml
│ │ ├── TourismOrderMapper.java
│ │ ├── TourismOrderMapper.xml
│ │ ├── UserMapper.java
│ │ └── UserMapper.xml
│ │ └── tools
│ │ └── ViewTool.java
├── mybatis-config.xml
├── mysql.properties
└── properties
│ └── user.properties
└── web
├── WEB-INF
├── applicationContext.xml
├── dispatcher-servlet.xml
├── lib
│ └── jstl-1.2.jar
├── view
│ ├── about.jsp
│ ├── add_success.jsp
│ ├── admin_console.jsp
│ ├── details.jsp
│ ├── index.jsp
│ ├── login.jsp
│ ├── my_order.jsp
│ ├── profile.jsp
│ ├── register.jsp
│ ├── register_success.jsp
│ ├── remove_tourism.jsp
│ ├── tourism.jsp
│ └── tourism_console.jsp
└── web.xml
├── css
├── animate.css
├── bootstrap-theme.css
├── bootstrap-theme.css.map
├── bootstrap-theme.min.css
├── bootstrap-theme.min.css.map
├── bootstrap.css
├── bootstrap.css.map
├── bootstrap.min.css
├── bootstrap.min.css.map
├── d_main.css
├── index.css
├── list.css
├── main.css
├── signin.css
└── tourism.css
├── fonts
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
├── glyphicons-halflings-regular.woff
└── glyphicons-halflings-regular.woff2
├── images
├── bag.jpg
├── cost_bargin.png
├── cost_bargin_more.png
├── cost_bg.png
├── db
│ ├── beijing.jpg
│ ├── default.jpg
│ ├── luoyang.jpg
│ └── taiyangdao.jpg
├── enjoy.jpg
├── flym.jpg
├── order.png
├── show.png
├── train.jpg
├── user.jpg@64h_64w_2e
└── warning.jpg
├── index.jsp
└── js
├── bootstrap.js
├── bootstrap.min.js
├── jquery-3.1.1.js
└── npm.js
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.idea/artifacts/project_war_exploded.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | $PROJECT_DIR$/out/artifacts/project_war_exploded
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/libraries/Spring_4_3_18_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.idea/libraries/Spring_MVC_4_3_18_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 1 关于整体的架构
2 | 其实是不太好的,截止目前,提出一些问题,如果有人看的话最好修改一下。
3 |
4 | # 1.1 service层
5 | 这里比较重要,可以看到,我的代码是将主要功能全部实现在controller里面,这是比较老的写法,
6 | 自然也非常不好。现在比较常用的写法是利用service层,将C层解耦出来。这样,C层只负责简单的逻辑——主要还是接收请求返回视图
7 | 等操作。而service层专门实现具体的方法。
8 | 但是这个还是看情况,如果比我写的这个还要小的项目,想要快速开发(例如期末项目),完全可以
9 | 像我这样的写法,毕竟这样真的很快。但是仍然不推荐。
10 |
11 | # 1.2 面向接口编程
12 | 这个是必须的,面向接口编程看起来似乎是比较麻烦的,尤其是对于小项目而言,service层直接写
13 | 就完事了。这里是看是不是有合作了,如果有合作,接口就非常重要。接口的重要性就在于一定的暴露。只将接口暴露出来,开发的时
14 | 候不用管这个方法如何实现,只用使用就可以了。而对于接口方法的开发人员也是直接实现方法就行,不用管在哪里调用。
15 | 这种方式非常符合面向对象编程所追求的“高内聚低耦合”。而一般在service层,也是会对每一个
16 | service都写一个接口。
17 |
18 | # 1.3 dao层
19 | dao层也是比较重要的,其实算是一种设计模式,跟数据库相关。在servlet编程使用JDBC的时候就
20 | 在使用了:应该将对数据库操作的方法写进dao层的接口,而dao层实现方法。而暴露出来的都是例如insertX、deleteX这样的方法,
21 | 从而保证在有数据库操作的时候,直接调用方法就能实现,而免去了重复代码的书写。
22 |
23 | # 1.4 mybatis与dao层与数据源
24 | 使用mybatis的时候,dao层应该有一定的修改:mapper接口需要写在dao层,而mapper的xml文件
25 | 一般也是放在dao层——但是总归不太好,很多专门开了一个recourse文件来放所有的xml。
26 | 而可以看到我的代码:mybatis的sqlSession等对象的初始化在频繁调用。不得已甚至写成controller
27 | 的静态块。这样也是不好的,既然都使用spring了,其实很多也直接配spring-mybatis.xml来建立mybatis数据源,这样就能大量简
28 | 化代码。
29 |
30 | # 2 内容
31 | 整体上就是利用Spring MVC,来完成一个旅游网。大概就是分成2种角色,用户和管理员。用户可以
32 | 浏览旅游团信息,然后添加订单,确定行程。对于用户基本的增删改(没有查)。管理员可以管理旅游团,增删改,查其实就是获取所
33 | 有列表了。大概就是这样。很标准的入门。数据持久化是利用了MySQL,使用mybatis。前端部分感谢同学的帮助。
34 |
35 | # 3 线程安全
36 | 这里不太好,并没有实现线程安全。也是不涉及多线程的问题了
37 |
38 | # 4 关于所用版本
39 | * IDE是idea,2018.2,因为可能GitHub上有IDE的配置文件,所以可能直接fork下来idea能直接加载,这个没有试。
40 | * Spring 框架是4.3,懒了,直接用idea下载的了。
41 | * mybatis 是3.4.6
42 | * MySQL 是5.7,直接fork的话需要考虑本地MySQL版本以及驱动版本。
43 |
44 | # 4.1 jar包
45 | 全部在WEB-INF/lib下。仍然需要注意MySQL的驱动
46 |
--------------------------------------------------------------------------------
/lib/aopalliance-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/aopalliance-1.0.jar
--------------------------------------------------------------------------------
/lib/commons-logging-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/commons-logging-1.2.jar
--------------------------------------------------------------------------------
/lib/ext/classmate-0.8.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/classmate-0.8.0.jar
--------------------------------------------------------------------------------
/lib/ext/commons-fileupload-1.3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/commons-fileupload-1.3.3.jar
--------------------------------------------------------------------------------
/lib/ext/commons-io-2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/commons-io-2.6.jar
--------------------------------------------------------------------------------
/lib/ext/hibernate-validator-5.0.1.Final.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/hibernate-validator-5.0.1.Final.jar
--------------------------------------------------------------------------------
/lib/ext/jboss-logging-3.1.1.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/jboss-logging-3.1.1.GA.jar
--------------------------------------------------------------------------------
/lib/ext/mybatis-3.4.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/mybatis-3.4.6.jar
--------------------------------------------------------------------------------
/lib/ext/mysql-connector-java-5.1.46-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/mysql-connector-java-5.1.46-bin.jar
--------------------------------------------------------------------------------
/lib/ext/validation-api-1.1.0.Final.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/ext/validation-api-1.1.0.Final.jar
--------------------------------------------------------------------------------
/lib/spring-aop-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-aop-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-aspects-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-aspects-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-beans-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-beans-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-context-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-context-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-context-support-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-context-support-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-core-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-core-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-expression-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-expression-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-instrument-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-instrument-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-instrument-tomcat-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-instrument-tomcat-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-jdbc-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-jdbc-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-jms-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-jms-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-messaging-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-messaging-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-orm-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-orm-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-oxm-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-oxm-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-test-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-test-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-tx-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-tx-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-web-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-web-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-webmvc-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-webmvc-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-webmvc-portlet-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-webmvc-portlet-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/lib/spring-websocket-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/lib/spring-websocket-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/Admin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/Admin.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/Tourism.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/Tourism.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/TourismOrder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/TourismOrder.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/bean/User.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/AdminController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/AdminController.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/TourismController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/TourismController.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/TourismOrderController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/TourismOrderController.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/UserController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/UserController.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/ViewController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/controller/ViewController.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/listener/ContextListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/listener/ContextListener.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/AdminMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/AdminMapper.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/AdminMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismMapper.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | insert into tourism (id,name,fromAddress,toAddress,beginTime,price,imageUrl)
17 | values (#{id},#{name},#{fromAddress},#{toAddress},#{beginTime},#{price},#{imageUrl})
18 |
19 |
20 |
21 | update tourism
22 | set id=#{id},name=#{name},fromAddress=#{fromAddress},toAddress=#{toAddress},beginTime=#{beginTime},price=#{price},imageUrl=#{imageUrl}
23 | where id=#{id}
24 |
25 |
26 |
27 | update tourism
28 | set hot=#{hot}
29 | where id=#{id}
30 |
31 |
32 |
33 | delete from tourism
34 | where id=#{id}
35 |
36 |
37 |
42 |
43 |
48 |
49 |
53 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismOrderMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismOrderMapper.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/TourismOrderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | insert into tourism_order (id,account,tourismId)
12 | values (#{id},#{account},#{tourismId})
13 |
14 |
15 |
16 | delete from tourism_order where id=#{id}
17 |
18 |
19 |
24 |
25 |
30 |
31 |
36 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/UserMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/UserMapper.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | insert into user (account,passwd,phone,email,userName)
14 | values (#{account},#{passwd},#{phone},#{email},#{userName})
15 |
16 |
17 |
18 | update user
19 | set passwd=#{passwd},phone=#{phone},email=#{email},userName=#{userName}
20 | where account=#{account}
21 |
22 |
23 |
24 | delete from user where account=#{account}
25 |
26 |
27 |
32 |
33 |
37 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/tools/ViewTool.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/me/iwts/tools/ViewTool.class
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/mybatis-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/mysql.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver = com.mysql.jdbc.Driver
2 | jdbc.url = jdbc:mysql://localhost:8080/ma_project
3 | jdbc.username = root
4 | jdbc.password = root
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/classes/properties/user.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/classes/properties/user.properties
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/aopalliance-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/aopalliance-1.0.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/classmate-0.8.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/classmate-0.8.0.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/commons-fileupload-1.3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/commons-fileupload-1.3.3.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/commons-io-2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/commons-io-2.6.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/commons-logging-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/commons-logging-1.2.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/hibernate-validator-5.0.1.Final.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/hibernate-validator-5.0.1.Final.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/jboss-logging-3.1.1.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/jboss-logging-3.1.1.GA.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/mybatis-3.4.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/mybatis-3.4.6.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.46-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.46-bin.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-aop-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-aop-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-aspects-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-aspects-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-beans-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-beans-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-context-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-context-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-context-support-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-context-support-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-core-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-core-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-expression-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-expression-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-instrument-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-instrument-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-instrument-tomcat-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-instrument-tomcat-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-jdbc-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-jdbc-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-jms-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-jms-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-messaging-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-messaging-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-orm-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-orm-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-oxm-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-oxm-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-test-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-test-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-tx-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-tx-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-web-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-web-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-webmvc-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-webmvc-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-webmvc-portlet-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-webmvc-portlet-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/spring-websocket-4.3.18.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/spring-websocket-4.3.18.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/lib/validation-api-1.1.0.Final.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/WEB-INF/lib/validation-api-1.1.0.Final.jar
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/about.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
54 |
55 |
56 | 计算机科学与信息工程学院,软件四班-第十组。
57 | 高克坤,李东倍,李宇晗
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/add_success.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 | 添加成功!
54 |
55 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/details.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
55 |
56 |
57 |
58 |
59 |

60 |
61 |
62 |
63 |
68 |
69 |
${tourism.name}
70 |
71 |
72 | - 满意度:95%
73 | - 点评:41
74 | - 关注度:1002
75 |
76 |
77 |
78 | - 推荐出发站:
79 | - 到达站:
-
80 | - 最近拼团时间:
81 |
82 | -
83 |
84 | <%--很诡异啊,在这个jsp里面就必须用备用fmt库?--%>
85 |
86 |
87 |
88 |
89 |
90 |
91 | - 单人价格:
92 | ${tourism.price}
93 |
94 | <%--如果已经添加行程了,声明无法重复添加--%>
95 |
96 | ${requestScope.noRepeat}
97 |
98 | <%--管理员不能添加行程--%>
99 |
100 | 加入预备行程
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/login.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
37 |
38 |
66 |
67 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/profile.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
39 |
40 |
41 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/register.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 |
54 |
55 |
56 |
57 | ${requestScope.accountError}
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/register_success.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 | 注册成功!
54 |
55 |
56 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/remove_tourism.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
5 |
6 |
7 | 飞猫旅行
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
41 |
42 |
43 |
44 |
70 |
71 |
72 |
控制台
73 |
74 |
75 | ${requestScope.alterMessage}
76 |
77 |
78 |
79 | - #
80 | - 团名
81 | - 始发地
82 | - 目的地
83 | - 开团时间
84 | - 价格
85 | - 是否热门
86 |
87 |
88 |
89 |
90 | - ${tourism.id}
91 | - ${tourism.name}
92 | - ${tourism.fromAddress}
93 | - ${tourism.toAddress}
94 | -
95 |
96 |
97 | - ${tourism.price}
98 | <%-- 是否是热门 --%>
99 | -
100 |
101 |
102 | 是
103 |
104 |
105 | 不是
106 |
107 |
108 |
109 | -
110 | 删除旅行
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/tourism.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
56 |
57 |
58 |

59 |
60 |
61 |
62 |
63 |

64 |
${hotTourism.name}
65 |
了解详情
66 |
67 |
68 |
69 |
70 |

71 |
72 |
73 |
74 | <%--只显示非热门旅行--%>
75 |
76 |
77 |

78 |
${tourism.name}
79 |
${tourism.price}
80 |
了解详情
81 |
82 |
83 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/view/tourism_console.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
5 |
6 |
7 | 飞猫旅行
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
41 |
42 |
43 |
93 |
94 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | contextConfigLocation
8 | /WEB-INF/applicationContext.xml
9 |
10 |
11 | org.springframework.web.context.ContextLoaderListener
12 |
13 |
14 | me.iwts.listener.ContextListener
15 |
16 |
17 |
18 |
19 | dispatcher
20 | org.springframework.web.servlet.DispatcherServlet
21 | 1
22 |
23 |
24 | dispatcher
25 | /
26 |
27 |
28 |
29 |
30 | http://java.sun.com/jsp/jstl/core
31 | /WEB-INF/c.tld
32 |
33 |
34 | http://java.sun.com/jsp/jstl/fmt
35 | /WEB-INF/fmt.tld
36 |
37 |
38 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/css/d_main.css:
--------------------------------------------------------------------------------
1 | .body html{
2 | margin: 0;
3 | padding: 0;
4 | }
5 | .total{
6 | width: 1000px;
7 | height: 2000px;
8 | margin: 0px auto;
9 | }
10 | .body_l{
11 | float: left;
12 | height: 580px;
13 | }
14 | .body_r{
15 | float: right;
16 | height: 600px;
17 | }
18 | .prise {
19 | height: 66px;
20 | background-size: cover;
21 | }
22 | .bargin{
23 | height: 66px;
24 | width: 204px;
25 | background: url("/images/cost_bargin.png");
26 | float: right;
27 | }
28 | .goods_info{
29 | display: inline-block;
30 | height: 40px;
31 | }
32 | .discountinfo{
33 | margin-left: 65px;
34 | margin-top: 9px;
35 | }
36 | .client_judge{
37 | border: 1px dashed #ddd;
38 | border-width: 1px 0;
39 | margin: 0;
40 | padding: 10px 0;
41 | position: relative;
42 | overflow: hidden;
43 | _zoom: 1;
44 | clear: both;
45 | display: flex;
46 | }
47 | .list-item{
48 | font-size: 12px;
49 | display: inline-block;
50 | float: left;
51 | width: 33%;
52 | text-align: center;
53 | position: relative;
54 | left: -1px;
55 | border-left: 1px solid #e5dfda;
56 | flex: 1;
57 | line-height: 16px;
58 | }
59 | .order_mess{
60 | padding: 10px 0 10px 40px;
61 | width: 570px;
62 | }
63 | .city_package{
64 |
65 | }
66 | .trival_info{
67 | font-size: 12px;
68 | }
69 | .trival_info>span{
70 | color: orange;
71 | font-size: 42px;
72 | margin-left: 105px;
73 | }
74 |
75 | .select_box{
76 |
77 | }
78 | .chose{
79 |
80 | }
81 | .list-chose{
82 | font-size: 12px;
83 | display: inline;
84 | text-align: center;
85 | line-height: 16px;
86 | position: relative;
87 | border: 1px solid #f80 ;
88 | padding:0 5px 0 5px;
89 | }
90 |
91 | dl{
92 | margin-left: 24px !important;
93 | margin-bottom: -2px !important;
94 | }
95 |
96 | dt{
97 | float: left !important;
98 | margin-right: 11px !important;
99 | }
100 |
101 | dd{
102 | margin: 0;
103 | padding: 0;
104 | }
105 |
106 | .g-add{
107 | display: block;
108 | text-align: center;
109 | width: 230px;
110 | margin: 0px auto;
111 | height: 40px;
112 | line-height: 40px;
113 | background: #00c1de;
114 | color: #ffffff;
115 | }
116 | .g-add:hover{
117 | color: #ffffff !important;
118 | }
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/css/list.css:
--------------------------------------------------------------------------------
1 | .list-ul{
2 | height: 39px;
3 | padding-left: 28px;
4 | line-height: 39px;
5 | margin-bottom: 0px !important;
6 | }
7 | .list-ul li{
8 | float: left;
9 | margin-right: 15px;
10 | width: 66px;
11 | }
12 | .list-id{
13 | width: 7px !important;
14 | }
15 | .list-name{
16 | width: 126px !important;
17 | }
18 | .list-date{
19 | width: 77px !important;
20 | }
21 | .list-wrong{
22 | height: 30px;
23 | width: 200px;
24 | display: block;
25 | background: #fefcee;
26 | line-height: 30px;
27 | border: 1px solid #ff934c;
28 | float: right;
29 | margin-top: 29px;
30 | margin-right: 33px;
31 | text-align: center;
32 | }
33 | .list-upload{
34 | width: 200px;
35 | margin: 0px auto;
36 | margin-bottom: 10px;
37 | }
38 |
39 | .alter-form{
40 | display: none;
41 | }
42 |
43 | #users h2{
44 | font-size: 21px;
45 | font-weight: lighter;
46 | padding-top: 16px;
47 | padding-left: 30px;
48 | float: left;
49 | }
50 | #users hr{
51 | height: 1px;
52 | width: 720px;
53 | background: #d5d1d1;
54 | border-style: none;
55 | margin: 0px auto;
56 | }
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/css/main.css:
--------------------------------------------------------------------------------
1 | *{
2 | margin: 0px;
3 | padding: 0px;
4 | }
5 | li{
6 | list-style-type: none;
7 | }
8 | a{
9 | text-decoration: none;
10 | }
11 | body{
12 | background: #f8f8f8;
13 | }
14 | .outer{
15 | width: 1200px;
16 | margin: 0px auto;
17 | }
18 |
19 | /*顶部*/
20 | .top-outer{
21 | background: #1c2327;
22 | width: 100%;
23 | }
24 | .top{
25 | height: 50px;
26 | max-width: 1920px;
27 | min-width: 1400px;
28 | margin: 0px auto;
29 | }
30 | .top-left{
31 | float: left;
32 | width: 200px;
33 | }
34 | .top-left>img{
35 | margin-top: 16px;
36 | margin-left: 30px;
37 | }
38 | .top-right{
39 | float: right;
40 | }
41 | .top-right>li{
42 | height:50px;
43 | width: 50px;
44 | line-height:50px;
45 | float: left;
46 | margin-left:35px;
47 | }
48 | .top-right>li>a{
49 | font-size:14px;
50 | color: #ffffff;
51 | }
52 | .search{
53 | width: 260px !important;
54 | line-height:0px !important;
55 | }
56 | .search>input{
57 | height: 50px;
58 | border-style: none;
59 | background: #373d41;
60 | width: 210px;
61 | }
62 | /*.search i{*/
63 | /*background: url("../images/search.png");*/
64 | /*display: block;*/
65 | /*height:50px;*/
66 | /*width:50px;*/
67 | /*line-height:50px;*/
68 | /*float: right;*/
69 | /*}*/
70 | .login{
71 | width: 116px !important;
72 | text-align: center;
73 | background: #00c1de;
74 | }
75 | .login>a{
76 | height: 50px;
77 | width:116px;
78 | font-size: 16px !important;
79 | display: block;
80 | }
81 | .login>a:hover{
82 | background: #0ac6e2;
83 | }
84 |
85 | /*header部分*/
86 | .head-outer{
87 | height: 115px;
88 | width:100%;
89 | background: #eef0f2;
90 | }
91 | /*.top-header{*/
92 | /*background: url("../images/nav-bg.png");*/
93 | /*height: 115px;*/
94 | /*width: 1200px;*/
95 | /*margin: 0px auto;*/
96 | /*}*/
97 | .top-header>img{
98 | margin-top: 10px;
99 | }
100 | .top-header>span{
101 | display: block;
102 | float: right;
103 | margin-top: 32px;
104 | margin-right: 987px;
105 | font-size: 26px;
106 | }
107 |
108 | .set-fixed{
109 | position: fixed !important;
110 | }
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/css/signin.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 40px;
3 | padding-bottom: 40px;
4 | background-color: #eee;
5 | }
6 |
7 | .form-signin {
8 | max-width: 330px;
9 | padding: 15px;
10 | margin: 0 auto;
11 | }
12 | .form-signin .form-signin-heading,
13 | .form-signin .checkbox {
14 | margin-bottom: 10px;
15 | }
16 | .form-signin .checkbox {
17 | font-weight: normal;
18 | }
19 | .form-signin .form-control {
20 | position: relative;
21 | height: auto;
22 | -webkit-box-sizing: border-box;
23 | -moz-box-sizing: border-box;
24 | box-sizing: border-box;
25 | padding: 10px;
26 | font-size: 16px;
27 | margin-bottom: 10px;
28 | }
29 |
30 | .form-signin .form-control:focus {
31 | z-index: 2;
32 | }
33 | .form-signin input[type="email"] {
34 | border-bottom-right-radius: 0;
35 | border-bottom-left-radius: 0;
36 | }
37 | .form-signin input[type="password"] {
38 | border-top-left-radius: 0;
39 | border-top-right-radius: 0;
40 | }
41 |
42 | .login-wrong{
43 | height: 30px;
44 | width: 300px;
45 | display: block;
46 | background: #fefcee;
47 | line-height: 30px;
48 | border: 1px solid #ff934c;
49 | margin: 0px auto;
50 | margin-bottom: 10px;
51 | }
52 |
53 | .icon-warning{
54 | background: url("/images/warning.jpg") no-repeat;
55 | display: block;
56 | height: 21px;
57 | width: 21px;
58 | float: left;
59 | margin-top: 4px;
60 | margin-left: 6px;
61 | margin-right: 7px;
62 | }
63 |
64 | .register-span{
65 | float: right;
66 | margin-top: 10px;
67 | margin-right: 10px;
68 | font-size: 18px;
69 | }
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/css/tourism.css:
--------------------------------------------------------------------------------
1 | .hot-div{
2 | width: 1000px;
3 | height: 288px;
4 | margin: 0px auto;
5 | border-bottom: 1px solid #b1b0b0;
6 | }
7 |
8 | .hot-div-three{
9 | width: 330px;
10 | text-align: center;
11 | float: left;
12 | height: auto;
13 | }
14 | .hot-div-three>img{
15 | border-radius: 25%;
16 | height: 207px;
17 | }
18 | .hot-div-three>a{
19 | display: block;
20 | }
21 | .hot-div-three>span{
22 | display: block;
23 | }
24 |
25 | .image-title{
26 | width: 1000px;
27 | height: 83px;
28 | margin: 14px auto;
29 | border-bottom: 1px solid #b1b0b0;
30 | }
31 | .image-title>img{
32 | float:right;
33 | }
34 |
35 | .more-div{
36 | width: 1000px;
37 | min-height: 10px;
38 | height: auto;
39 | margin: 0px auto;
40 | }
41 | .more-div-line{
42 | position: relative;
43 | width: 500px;
44 | float: left;
45 | margin-bottom: 30px;
46 | }
47 | .more-div-line>h3{
48 | display: inline-block;
49 | font-size: 30px;
50 | position: absolute;
51 | top: 12px;
52 | left: 339px;
53 | margin: 0px !important;
54 | }
55 | .more-div-line>span{
56 | display: inline-block;
57 | font-size: 30px;
58 | position: absolute;
59 | top: 51px;
60 | left: 339px;
61 | color: orange;
62 | }
63 | .more-div-line>a{
64 | display: inline-block;
65 | position: absolute;
66 | top: 96px;
67 | left: 339px;
68 | }
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/bag.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/bag.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/cost_bargin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/cost_bargin.png
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/cost_bargin_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/cost_bargin_more.png
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/cost_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/cost_bg.png
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/db/beijing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/db/beijing.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/db/default.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/db/default.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/db/luoyang.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/db/luoyang.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/db/taiyangdao.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/db/taiyangdao.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/enjoy.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/enjoy.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/flym.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/flym.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/order.png
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/show.png
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/train.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/train.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/user.jpg@64h_64w_2e:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/user.jpg@64h_64w_2e
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/images/warning.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/artifacts/project_war_exploded/images/warning.jpg
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 |
3 |
4 | $Title$
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/out/artifacts/project_war_exploded/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/out/production/project/me/iwts/bean/Admin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/bean/Admin.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/bean/Tourism.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/bean/Tourism.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/bean/TourismOrder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/bean/TourismOrder.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/bean/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/bean/User.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/controller/AdminController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/controller/AdminController.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/controller/TourismController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/controller/TourismController.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/controller/TourismOrderController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/controller/TourismOrderController.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/controller/UserController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/controller/UserController.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/controller/ViewController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/controller/ViewController.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/listener/ContextListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/listener/ContextListener.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/AdminMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/mapper/AdminMapper.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/AdminMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/TourismMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/mapper/TourismMapper.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/TourismMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | insert into tourism (id,name,fromAddress,toAddress,beginTime,price,imageUrl)
17 | values (#{id},#{name},#{fromAddress},#{toAddress},#{beginTime},#{price},#{imageUrl})
18 |
19 |
20 |
21 | update tourism
22 | set id=#{id},name=#{name},fromAddress=#{fromAddress},toAddress=#{toAddress},beginTime=#{beginTime},price=#{price},imageUrl=#{imageUrl}
23 | where id=#{id}
24 |
25 |
26 |
27 | update tourism
28 | set hot=#{hot}
29 | where id=#{id}
30 |
31 |
32 |
33 | delete from tourism
34 | where id=#{id}
35 |
36 |
37 |
42 |
43 |
48 |
49 |
53 |
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/TourismOrderMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/mapper/TourismOrderMapper.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/TourismOrderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | insert into tourism_order (id,account,tourismId)
12 | values (#{id},#{account},#{tourismId})
13 |
14 |
15 |
16 | delete from tourism_order where id=#{id}
17 |
18 |
19 |
24 |
25 |
30 |
31 |
36 |
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/UserMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/mapper/UserMapper.class
--------------------------------------------------------------------------------
/out/production/project/me/iwts/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | insert into user (account,passwd,phone,email,userName)
14 | values (#{account},#{passwd},#{phone},#{email},#{userName})
15 |
16 |
17 |
18 | update user
19 | set passwd=#{passwd},phone=#{phone},email=#{email},userName=#{userName}
20 | where account=#{account}
21 |
22 |
23 |
24 | delete from user where account=#{account}
25 |
26 |
27 |
32 |
33 |
37 |
--------------------------------------------------------------------------------
/out/production/project/me/iwts/tools/ViewTool.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/me/iwts/tools/ViewTool.class
--------------------------------------------------------------------------------
/out/production/project/mybatis-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/out/production/project/mysql.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver = com.mysql.jdbc.Driver
2 | jdbc.url = jdbc:mysql://localhost:8080/ma_project
3 | jdbc.username = root
4 | jdbc.password = root
--------------------------------------------------------------------------------
/out/production/project/properties/user.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/out/production/project/properties/user.properties
--------------------------------------------------------------------------------
/project.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/src/me/iwts/bean/Admin.java:
--------------------------------------------------------------------------------
1 | package me.iwts.bean;
2 |
3 | public class Admin {
4 | private int id;
5 | private String account;
6 | private String passwd;
7 |
8 | public void setId(int id) {
9 | this.id = id;
10 | }
11 | public void setAccount(String account) {
12 | this.account = account;
13 | }
14 | public void setPasswd(String passwd) {
15 | this.passwd = passwd;
16 | }
17 |
18 | public int getId() {
19 | return id;
20 | }
21 | public String getAccount() {
22 | return account;
23 | }
24 | public String getPasswd() {
25 | return passwd;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/me/iwts/bean/Tourism.java:
--------------------------------------------------------------------------------
1 | package me.iwts.bean;
2 |
3 | import org.hibernate.validator.constraints.NotBlank;
4 | import org.springframework.format.annotation.DateTimeFormat;
5 | import javax.validation.constraints.Future;
6 | import java.util.Date;
7 |
8 | public class Tourism {
9 | private int id;
10 | @NotBlank(message = "团名不能为空")
11 | private String name;
12 | @NotBlank(message = "出发地不能为空")
13 | private String fromAddress;
14 | @NotBlank(message = "目的地不能为空")
15 | private String toAddress;
16 | @DateTimeFormat(pattern = "yyyy-MM-dd")
17 | @Future(message = "必须为未来的日期")
18 | private Date beginTime;
19 | private double price;
20 | private String imageUrl;
21 | private boolean hot;
22 |
23 | public Tourism(){ }
24 | public Tourism(int id,String name,String fromAddress,String toAddress,Date beginTime,double price,String imageUrl){
25 | this.id = id;
26 | this.name = name;
27 | this.fromAddress = fromAddress;
28 | this.toAddress = toAddress;
29 | this.beginTime = beginTime;
30 | this.price = price;
31 | this.imageUrl = imageUrl;
32 | }
33 | public Tourism(String name,String fromAddress,String toAddress,Date date, double price){
34 | this.id = id;
35 | this.name = name;
36 | this.fromAddress = fromAddress;
37 | this.toAddress = toAddress;
38 | this.beginTime = beginTime;
39 | this.price = price;
40 | }
41 |
42 | public void setId(int id) {
43 | this.id = id;
44 | }
45 | public void setName(String name) {
46 | this.name = name;
47 | }
48 | public void setFromAddress(String fromAddress) {
49 | this.fromAddress = fromAddress;
50 | }
51 | public void setToAddress(String toAddress) {
52 | this.toAddress = toAddress;
53 | }
54 | public void setBeginTime(Date beginTime) {
55 | this.beginTime = beginTime;
56 | }
57 | public void setPrice(double price) {
58 | this.price = price;
59 | }
60 | public void setImageUrl(String imageUrl) {
61 | this.imageUrl = imageUrl;
62 | }
63 | public void setHot(boolean hot) {
64 | this.hot = hot;
65 | }
66 |
67 | public int getId() {
68 | return id;
69 | }
70 | public String getName() {
71 | return name;
72 | }
73 | public String getFromAddress() {
74 | return fromAddress;
75 | }
76 | public String getToAddress() {
77 | return toAddress;
78 | }
79 | public Date getBeginTime() {
80 | return beginTime;
81 | }
82 | public double getPrice() {
83 | return price;
84 | }
85 | public String getImageUrl() {
86 | return imageUrl;
87 | }
88 | public boolean getHot(){
89 | return hot;
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/src/me/iwts/bean/TourismOrder.java:
--------------------------------------------------------------------------------
1 | package me.iwts.bean;
2 |
3 | public class TourismOrder {
4 | private String id;
5 | private String account;
6 | private int tourismId;
7 |
8 | public TourismOrder(){ }
9 | public TourismOrder(String id,String account,int tourismId){
10 | this.id = id;
11 | this.account = account;
12 | this.tourismId = tourismId;
13 | }
14 |
15 | public void setId(String id) {
16 | this.id = id;
17 | }
18 | public void setAccount(String account) {
19 | this.account = account;
20 | }
21 | public void setTourismId(int tourismId) {
22 | this.tourismId = tourismId;
23 | }
24 |
25 | public String getId() {
26 | return id;
27 | }
28 | public String getAccount() {
29 | return account;
30 | }
31 | public int getTourismId() {
32 | return tourismId;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/me/iwts/bean/User.java:
--------------------------------------------------------------------------------
1 | package me.iwts.bean;
2 |
3 | import org.hibernate.validator.constraints.Email;
4 | import javax.validation.constraints.Size;
5 |
6 | public class User {
7 | //账号、密码、手机号、邮箱(可选)、用户名(可选,不选则用账号代替)、是否为会员、会员截止日期
8 | @Size(min = 6,max = 16,message = "账号不能为空,位数要为6-16位")
9 | private String account;
10 | @Size(min = 6,max = 16,message = "密码不能为空,位数要为6-14位")
11 | private String passwd;
12 | @Size(min = 11,max = 11,message = "手机不能为空,手机号码格式错误")
13 | private String phone;
14 | @Email(message = "邮箱格式错误")
15 | private String email;
16 | @Size(min = 0,max = 10,message = "昵称不能大于10位")
17 | private String userName;
18 |
19 | public User(){ }
20 | public User(String account,String passwd,String phone,String email,String userName){
21 | this.account = account;
22 | this.passwd = passwd;
23 | this.email = email;
24 | this.phone = phone;
25 | this.userName = userName;
26 | }
27 |
28 | public void setEmail(String email) {
29 | this.email = email;
30 | }
31 | public void setAccount(String account) {
32 | this.account = account;
33 | }
34 | public void setPasswd(String passwd) {
35 | this.passwd = passwd;
36 | }
37 | public void setPhone(String phone) {
38 | this.phone = phone;
39 | }
40 | public void setUserName(String userName) {
41 | this.userName = userName;
42 | }
43 |
44 | public String getEmail() {
45 | return email;
46 | }
47 | public String getAccount() {
48 | return account;
49 | }
50 | public String getPasswd() {
51 | return passwd;
52 | }
53 | public String getPhone() {
54 | return phone;
55 | }
56 | public String getUserName() {
57 | return userName;
58 | }
59 | }
60 |
61 |
--------------------------------------------------------------------------------
/src/me/iwts/controller/AdminController.java:
--------------------------------------------------------------------------------
1 | package me.iwts.controller;
2 |
3 | import me.iwts.bean.Admin;
4 | import me.iwts.mapper.AdminMapper;
5 | import me.iwts.tools.ViewTool;
6 | import org.apache.ibatis.io.Resources;
7 | import org.apache.ibatis.session.SqlSession;
8 | import org.apache.ibatis.session.SqlSessionFactory;
9 | import org.apache.ibatis.session.SqlSessionFactoryBuilder;
10 | import org.springframework.stereotype.Controller;
11 | import org.springframework.ui.Model;
12 | import org.springframework.web.bind.annotation.ModelAttribute;
13 | import org.springframework.web.bind.annotation.RequestMapping;
14 | import org.springframework.web.servlet.ModelAndView;
15 | import javax.servlet.http.HttpSession;
16 | import java.io.Reader;
17 |
18 | @Controller
19 | public class AdminController {
20 | public static SqlSessionFactory sessionFactory;
21 | public static SqlSession sqlSession;
22 | public static AdminMapper mapper;
23 |
24 | static{
25 | try {
26 | Reader reader = Resources.getResourceAsReader("mybatis-config.xml");
27 | sessionFactory = new SqlSessionFactoryBuilder().build(reader);
28 | } catch (Exception e) {
29 | e.printStackTrace();
30 | }
31 | sqlSession = sessionFactory.openSession();
32 | mapper = sqlSession.getMapper(AdminMapper.class);
33 | }
34 |
35 | // 登录
36 | @RequestMapping("loginByAdmin.action")
37 | public ModelAndView loginByAdmin(@ModelAttribute Admin admin, Model model, HttpSession session){
38 | Admin selectAdmin = null;
39 | try{
40 | selectAdmin = mapper.selectAdminById(admin.getId());
41 | if(selectAdmin == null){
42 | model.addAttribute("loginWrongByAdmin","ID错误");
43 | model.addAttribute("admin",admin);
44 | return new ModelAndView(ViewTool.LOGIN);
45 | }
46 | if(selectAdmin.getPasswd().compareTo(admin.getPasswd()) != 0){
47 | model.addAttribute("loginWrongByAdmin","密码错误");
48 | model.addAttribute("admin",admin);
49 | return new ModelAndView(ViewTool.LOGIN);
50 | }
51 | }catch (Exception ex){
52 | ex.printStackTrace();
53 | }
54 | session.setAttribute("isLogin",true);
55 | session.setAttribute("isAdmin",true);
56 | session.setAttribute("admin",selectAdmin);
57 | session.setAttribute("account",selectAdmin.getAccount());
58 | // 重定向
59 | return new ModelAndView("redirect:/loginByAdminRedirect");
60 | }
61 | @RequestMapping("loginByAdminRedirect")
62 | public ModelAndView loginByAdminRedirect(){
63 | return new ModelAndView(ViewTool.ADMIN_CONSOLE);
64 | }
65 |
66 | // 注销
67 | @RequestMapping("logoutAdmin")
68 | public ModelAndView logoutAdmin(HttpSession session){
69 | session.setAttribute("isLogin",false);
70 | session.setAttribute("isAdmin",false);
71 | session.removeAttribute("admin");
72 | session.removeAttribute("account");
73 | return new ModelAndView("redirect:/logoutAdminRedirect");
74 | }
75 | // 注销重定向到首页
76 | @RequestMapping("logoutAdminRedirect")
77 | public ModelAndView logoutAdminRedirect(){
78 | return new ModelAndView(ViewTool.INDEX);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/src/me/iwts/controller/ViewController.java:
--------------------------------------------------------------------------------
1 | package me.iwts.controller;
2 |
3 | import me.iwts.tools.ViewTool;
4 | import org.springframework.stereotype.Controller;
5 | import org.springframework.web.bind.annotation.RequestMapping;
6 | import org.springframework.web.servlet.ModelAndView;
7 |
8 | @Controller
9 | public class ViewController {
10 | // 首页
11 | @RequestMapping("getIndex.action")
12 | public ModelAndView getIndex(){
13 | return new ModelAndView(ViewTool.INDEX);
14 | }
15 | // 注册页
16 | @RequestMapping("getRegister.action")
17 | public ModelAndView getRegister(){
18 | return new ModelAndView(ViewTool.REGISTER);
19 | }
20 | // 登录页
21 | @RequestMapping("getLogin.action")
22 | public ModelAndView getSign(){
23 | return new ModelAndView(ViewTool.LOGIN);
24 | }
25 | // 用户页
26 | @RequestMapping("getProfile.action")
27 | public ModelAndView getProfile(){
28 | return new ModelAndView(ViewTool.PROFILE);
29 | }
30 | // 管理员控制页
31 | @RequestMapping("getAdminConsole")
32 | public ModelAndView getAdminConsole(){
33 | return new ModelAndView(ViewTool.ADMIN_CONSOLE);
34 | }
35 | // 旅游团控制页
36 | @RequestMapping("getTourismConsole")
37 | public ModelAndView getTourismConsole(){
38 | return new ModelAndView(ViewTool.TOURISM_CONSOLE);
39 | }
40 | // “关于”页面
41 | @RequestMapping("getAbout")
42 | public ModelAndView getAbout(){
43 | return new ModelAndView(ViewTool.ABOUT);
44 | }
45 | // 国内游页面
46 | @RequestMapping("getTourismPage")
47 | public ModelAndView getTourismPage(){
48 | return new ModelAndView(ViewTool.TOURISM);
49 | }
50 | // 删除旅游团页面
51 | @RequestMapping("getRemoveTourism")
52 | public ModelAndView getRemoveTourism(){
53 | return new ModelAndView(ViewTool.REMOVE_TOURISM);
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/me/iwts/listener/ContextListener.java:
--------------------------------------------------------------------------------
1 | package me.iwts.listener;
2 |
3 | import me.iwts.bean.Tourism;
4 | import me.iwts.mapper.TourismMapper;
5 | import org.apache.ibatis.io.Resources;
6 | import org.apache.ibatis.session.SqlSession;
7 | import org.apache.ibatis.session.SqlSessionFactory;
8 | import org.apache.ibatis.session.SqlSessionFactoryBuilder;
9 | import javax.servlet.ServletContext;
10 | import javax.servlet.ServletContextEvent;
11 | import javax.servlet.ServletContextListener;
12 | import java.io.Reader;
13 | import java.util.List;
14 | import java.util.Random;
15 |
16 | public class ContextListener implements ServletContextListener {
17 | @Override
18 | public void contextInitialized(ServletContextEvent sce) {
19 | ServletContext application = sce.getServletContext();
20 |
21 | // 初始化图片url
22 | String imagesUrl = "/db/";
23 | application.setAttribute("imagesUrl",imagesUrl);
24 |
25 | // 初始化首页商品信息
26 | SqlSessionFactory sessionFactory = null;
27 | SqlSession sqlSession = null;
28 | TourismMapper mapper = null;
29 |
30 | try {
31 | Reader reader = Resources.getResourceAsReader("mybatis-config.xml");
32 | sessionFactory = new SqlSessionFactoryBuilder().build(reader);
33 | } catch (Exception e) {
34 | e.printStackTrace();
35 | }
36 | sqlSession = sessionFactory.openSession();
37 | mapper = sqlSession.getMapper(TourismMapper.class);
38 |
39 | // 保证至少有3个tourism
40 | // 初始化两个list:hot值为true的热门推荐list,以及存所有数据的list
41 | List hotList = null;
42 | List tourismList = null;
43 | try {
44 | hotList = mapper.selectTourismByHot();
45 | tourismList = mapper.selectAllTourism();
46 | } catch (Exception e) {
47 | e.printStackTrace();
48 | }
49 | // 不足3个推荐,随机补个
50 | while(hotList.size() < 3){
51 | Random random = new Random();
52 | int index = random.nextInt(tourismList.size());
53 | Tourism tourism = tourismList.get(index);
54 | // 防止重复
55 | int flag = 0;
56 | for(Tourism randomTourism : hotList){
57 | if(tourism.getId() == randomTourism.getId()){
58 | flag = 1;
59 | break;
60 | }
61 | }
62 | if(flag == 1) continue;
63 | hotList.add(tourism);
64 | }
65 | // 超过3个推荐,则只保留最早设定的
66 | while(hotList.size() > 3){
67 | for(int i = hotList.size()-1;i > 2;i--){
68 | hotList.remove(i);
69 | }
70 | }
71 |
72 | application.setAttribute("hotList",hotList);
73 | application.setAttribute("tourismList",tourismList);
74 | }
75 |
76 | @Override
77 | public void contextDestroyed(ServletContextEvent sce) {
78 | //
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/AdminMapper.java:
--------------------------------------------------------------------------------
1 | package me.iwts.mapper;
2 |
3 | import me.iwts.bean.Admin;
4 |
5 | public interface AdminMapper {
6 | Admin selectAdminById(int id);
7 | }
8 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/AdminMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/TourismMapper.java:
--------------------------------------------------------------------------------
1 | package me.iwts.mapper;
2 |
3 | import me.iwts.bean.Tourism;
4 | import java.util.List;
5 |
6 | public interface TourismMapper {
7 | int insertTourism(Tourism tourism) throws Exception;
8 | int updateTourism(Tourism tourism) throws Exception;
9 | int updateTourismHot(Tourism tourism) throws Exception;
10 | int deleteTourism(Tourism tourism) throws Exception;
11 | Tourism selectTourismById(int id) throws Exception;
12 | List selectTourismByHot() throws Exception;
13 | List selectAllTourism() throws Exception;
14 | }
15 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/TourismMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | insert into tourism (id,name,fromAddress,toAddress,beginTime,price,imageUrl)
17 | values (#{id},#{name},#{fromAddress},#{toAddress},#{beginTime},#{price},#{imageUrl})
18 |
19 |
20 |
21 | update tourism
22 | set id=#{id},name=#{name},fromAddress=#{fromAddress},toAddress=#{toAddress},beginTime=#{beginTime},price=#{price},imageUrl=#{imageUrl}
23 | where id=#{id}
24 |
25 |
26 |
27 | update tourism
28 | set hot=#{hot}
29 | where id=#{id}
30 |
31 |
32 |
33 | delete from tourism
34 | where id=#{id}
35 |
36 |
37 |
42 |
43 |
48 |
49 |
53 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/TourismOrderMapper.java:
--------------------------------------------------------------------------------
1 | package me.iwts.mapper;
2 |
3 | import me.iwts.bean.TourismOrder;
4 | import java.util.List;
5 |
6 | public interface TourismOrderMapper {
7 | int insertOrder(TourismOrder order) throws Exception;
8 | int deleteOrderById(String id) throws Exception;
9 | List selectOrderById(String id) throws Exception;
10 | List selectOrderByAccount(String account) throws Exception;
11 | List selectOrderByTourismId(int tourismId) throws Exception;
12 | }
13 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/TourismOrderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | insert into tourism_order (id,account,tourismId)
12 | values (#{id},#{account},#{tourismId})
13 |
14 |
15 |
16 | delete from tourism_order where id=#{id}
17 |
18 |
19 |
24 |
25 |
30 |
31 |
36 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/UserMapper.java:
--------------------------------------------------------------------------------
1 | package me.iwts.mapper;
2 |
3 | import me.iwts.bean.User;
4 | import java.util.List;
5 |
6 | public interface UserMapper {
7 | int insertUser(User user) throws Exception;
8 | int updateUser(User user) throws Exception;
9 | int deleteUser(User user) throws Exception;
10 | User selectUserByAccount(String account) throws Exception;
11 | List selectAllUser() throws Exception;
12 | }
13 |
--------------------------------------------------------------------------------
/src/me/iwts/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | insert into user (account,passwd,phone,email,userName)
14 | values (#{account},#{passwd},#{phone},#{email},#{userName})
15 |
16 |
17 |
18 | update user
19 | set passwd=#{passwd},phone=#{phone},email=#{email},userName=#{userName}
20 | where account=#{account}
21 |
22 |
23 |
24 | delete from user where account=#{account}
25 |
26 |
27 |
32 |
33 |
37 |
--------------------------------------------------------------------------------
/src/me/iwts/tools/ViewTool.java:
--------------------------------------------------------------------------------
1 | package me.iwts.tools;
2 |
3 | public class ViewTool {
4 | public static final String INDEX = "index";
5 | public static final String LOGIN = "login";
6 | public static final String PROFILE = "profile";
7 | public static final String REGISTER = "register";
8 | public static final String REGISTER_SUCCESS = "register_success";
9 | public static final String ADMIN_CONSOLE = "admin_console";
10 | public static final String DETAILS = "details";
11 | public static final String ADD_SUCCESS = "add_success";
12 | public static final String TOURISM_CONSOLE = "tourism_console";
13 | public static final String MY_ORDER = "my_order";
14 | public static final String ABOUT = "about";
15 | public static final String TOURISM = "tourism";
16 | public static final String REMOVE_TOURISM = "remove_tourism";
17 | }
18 |
--------------------------------------------------------------------------------
/src/mybatis-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/mysql.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver = com.mysql.jdbc.Driver
2 | jdbc.url = jdbc:mysql://localhost:8080/ma_project
3 | jdbc.username = root
4 | jdbc.password = root
--------------------------------------------------------------------------------
/src/properties/user.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/src/properties/user.properties
--------------------------------------------------------------------------------
/web/WEB-INF/applicationContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/web/WEB-INF/dispatcher-servlet.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/web/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/web/WEB-INF/view/about.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
54 |
55 |
56 | 计算机科学与信息工程学院,软件四班-第十组。
57 | 高克坤,李东倍,李宇晗
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/add_success.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 | 添加成功!
54 |
55 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/details.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
55 |
56 |
57 |
58 |
59 |

60 |
61 |
62 |
63 |
68 |
69 |
${tourism.name}
70 |
71 |
72 | - 满意度:95%
73 | - 点评:41
74 | - 关注度:1002
75 |
76 |
77 |
78 | - 推荐出发站:
79 | - 到达站:
-
80 | - 最近拼团时间:
81 |
82 | -
83 |
84 | <%--很诡异啊,在这个jsp里面就必须用备用fmt库?--%>
85 |
86 |
87 |
88 |
89 |
90 |
91 | - 单人价格:
92 | ${tourism.price}
93 |
94 | <%--如果已经添加行程了,声明无法重复添加--%>
95 |
96 | ${requestScope.noRepeat}
97 |
98 | <%--管理员不能添加行程--%>
99 |
100 | 加入预备行程
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/login.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
37 |
38 |
66 |
67 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/my_order.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
38 |
39 |
40 |
64 |
65 |
66 |
67 |
96 |
97 |
98 |
我的订单
99 |
100 |
101 |
102 |
103 | - 订单号
104 | - 旅游团编号
105 | - 旅游团名
106 | - 价格
107 |
108 |
109 |
110 |
111 | - ${order.id}
112 | - ${order.tourismId}
113 | - ${sessionScope.myTourism[order.id].name}
114 | - ${sessionScope.myTourism[order.id].price}
115 | -
116 |
117 | 结算订单
118 |
119 | -
120 |
121 | 取消订单
122 |
123 |
124 |
125 |
126 |
127 |
128 | 您还没有订单
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/profile.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
39 |
40 |
41 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/register.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
4 |
5 |
6 | 飞猫旅行
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 |
54 |
55 |
56 |
57 | ${requestScope.accountError}
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/register_success.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
52 |
53 | 注册成功!
54 |
55 |
56 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/remove_tourism.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
5 |
6 |
7 | 飞猫旅行
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
41 |
42 |
43 |
44 |
70 |
71 |
72 |
控制台
73 |
74 |
75 | ${requestScope.alterMessage}
76 |
77 |
78 |
79 | - #
80 | - 团名
81 | - 始发地
82 | - 目的地
83 | - 开团时间
84 | - 价格
85 | - 是否热门
86 |
87 |
88 |
89 |
90 | - ${tourism.id}
91 | - ${tourism.name}
92 | - ${tourism.fromAddress}
93 | - ${tourism.toAddress}
94 | -
95 |
96 |
97 | - ${tourism.price}
98 | <%-- 是否是热门 --%>
99 | -
100 |
101 |
102 | 是
103 |
104 |
105 | 不是
106 |
107 |
108 |
109 | -
110 | 删除旅行
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/tourism.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3 |
4 |
5 | 飞猫旅行
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
56 |
57 |
58 |

59 |
60 |
61 |
62 |
63 |

64 |
${hotTourism.name}
65 |
了解详情
66 |
67 |
68 |
69 |
70 |

71 |
72 |
73 |
74 | <%--只显示非热门旅行--%>
75 |
76 |
77 |

78 |
${tourism.name}
79 |
${tourism.price}
80 |
了解详情
81 |
82 |
83 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/web/WEB-INF/view/tourism_console.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
5 |
6 |
7 | 飞猫旅行
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
41 |
42 |
43 |
93 |
94 |
--------------------------------------------------------------------------------
/web/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | contextConfigLocation
8 | /WEB-INF/applicationContext.xml
9 |
10 |
11 | org.springframework.web.context.ContextLoaderListener
12 |
13 |
14 | me.iwts.listener.ContextListener
15 |
16 |
17 |
18 |
19 | dispatcher
20 | org.springframework.web.servlet.DispatcherServlet
21 | 1
22 |
23 |
24 | dispatcher
25 | /
26 |
27 |
28 |
29 |
30 | http://java.sun.com/jsp/jstl/core
31 | /WEB-INF/c.tld
32 |
33 |
34 | http://java.sun.com/jsp/jstl/fmt
35 | /WEB-INF/fmt.tld
36 |
37 |
38 |
--------------------------------------------------------------------------------
/web/css/d_main.css:
--------------------------------------------------------------------------------
1 | .body html{
2 | margin: 0;
3 | padding: 0;
4 | }
5 | .total{
6 | width: 1000px;
7 | height: 2000px;
8 | margin: 0px auto;
9 | }
10 | .body_l{
11 | float: left;
12 | height: 580px;
13 | }
14 | .body_r{
15 | float: right;
16 | height: 600px;
17 | }
18 | .prise {
19 | height: 66px;
20 | background-size: cover;
21 | }
22 | .bargin{
23 | height: 66px;
24 | width: 204px;
25 | background: url("/images/cost_bargin.png");
26 | float: right;
27 | }
28 | .goods_info{
29 | display: inline-block;
30 | height: 40px;
31 | }
32 | .discountinfo{
33 | margin-left: 65px;
34 | margin-top: 9px;
35 | }
36 | .client_judge{
37 | border: 1px dashed #ddd;
38 | border-width: 1px 0;
39 | margin: 0;
40 | padding: 10px 0;
41 | position: relative;
42 | overflow: hidden;
43 | _zoom: 1;
44 | clear: both;
45 | display: flex;
46 | }
47 | .list-item{
48 | font-size: 12px;
49 | display: inline-block;
50 | float: left;
51 | width: 33%;
52 | text-align: center;
53 | position: relative;
54 | left: -1px;
55 | border-left: 1px solid #e5dfda;
56 | flex: 1;
57 | line-height: 16px;
58 | }
59 | .order_mess{
60 | padding: 10px 0 10px 40px;
61 | width: 570px;
62 | }
63 | .city_package{
64 |
65 | }
66 | .trival_info{
67 | font-size: 12px;
68 | }
69 | .trival_info>span{
70 | color: orange;
71 | font-size: 42px;
72 | margin-left: 105px;
73 | }
74 |
75 | .select_box{
76 |
77 | }
78 | .chose{
79 |
80 | }
81 | .list-chose{
82 | font-size: 12px;
83 | display: inline;
84 | text-align: center;
85 | line-height: 16px;
86 | position: relative;
87 | border: 1px solid #f80 ;
88 | padding:0 5px 0 5px;
89 | }
90 |
91 | dl{
92 | margin-left: 24px !important;
93 | margin-bottom: -2px !important;
94 | }
95 |
96 | dt{
97 | float: left !important;
98 | margin-right: 11px !important;
99 | }
100 |
101 | dd{
102 | margin: 0;
103 | padding: 0;
104 | }
105 |
106 | .g-add{
107 | display: block;
108 | text-align: center;
109 | width: 230px;
110 | margin: 0px auto;
111 | height: 40px;
112 | line-height: 40px;
113 | background: #00c1de;
114 | color: #ffffff;
115 | }
116 | .g-add:hover{
117 | color: #ffffff !important;
118 | }
--------------------------------------------------------------------------------
/web/css/list.css:
--------------------------------------------------------------------------------
1 | .list-ul{
2 | height: 39px;
3 | padding-left: 28px;
4 | line-height: 39px;
5 | margin-bottom: 0px !important;
6 | }
7 | .list-ul li{
8 | float: left;
9 | margin-right: 15px;
10 | width: 66px;
11 | }
12 | .list-id{
13 | width: 7px !important;
14 | }
15 | .list-name{
16 | width: 126px !important;
17 | }
18 | .list-date{
19 | width: 77px !important;
20 | }
21 | .list-wrong{
22 | height: 30px;
23 | width: 200px;
24 | display: block;
25 | background: #fefcee;
26 | line-height: 30px;
27 | border: 1px solid #ff934c;
28 | float: right;
29 | margin-top: 29px;
30 | margin-right: 33px;
31 | text-align: center;
32 | }
33 | .list-upload{
34 | width: 200px;
35 | margin: 0px auto;
36 | margin-bottom: 10px;
37 | }
38 |
39 | .alter-form{
40 | display: none;
41 | }
42 |
43 | #users h2{
44 | font-size: 21px;
45 | font-weight: lighter;
46 | padding-top: 16px;
47 | padding-left: 30px;
48 | float: left;
49 | }
50 | #users hr{
51 | height: 1px;
52 | width: 720px;
53 | background: #d5d1d1;
54 | border-style: none;
55 | margin: 0px auto;
56 | }
--------------------------------------------------------------------------------
/web/css/main.css:
--------------------------------------------------------------------------------
1 | *{
2 | margin: 0px;
3 | padding: 0px;
4 | }
5 | li{
6 | list-style-type: none;
7 | }
8 | a{
9 | text-decoration: none;
10 | }
11 | body{
12 | background: #f8f8f8;
13 | }
14 | .outer{
15 | width: 1200px;
16 | margin: 0px auto;
17 | }
18 |
19 | /*顶部*/
20 | .top-outer{
21 | background: #1c2327;
22 | width: 100%;
23 | }
24 | .top{
25 | height: 50px;
26 | max-width: 1920px;
27 | min-width: 1400px;
28 | margin: 0px auto;
29 | }
30 | .top-left{
31 | float: left;
32 | width: 200px;
33 | }
34 | .top-left>img{
35 | margin-top: 16px;
36 | margin-left: 30px;
37 | }
38 | .top-right{
39 | float: right;
40 | }
41 | .top-right>li{
42 | height:50px;
43 | width: 50px;
44 | line-height:50px;
45 | float: left;
46 | margin-left:35px;
47 | }
48 | .top-right>li>a{
49 | font-size:14px;
50 | color: #ffffff;
51 | }
52 | .search{
53 | width: 260px !important;
54 | line-height:0px !important;
55 | }
56 | .search>input{
57 | height: 50px;
58 | border-style: none;
59 | background: #373d41;
60 | width: 210px;
61 | }
62 | /*.search i{*/
63 | /*background: url("../images/search.png");*/
64 | /*display: block;*/
65 | /*height:50px;*/
66 | /*width:50px;*/
67 | /*line-height:50px;*/
68 | /*float: right;*/
69 | /*}*/
70 | .login{
71 | width: 116px !important;
72 | text-align: center;
73 | background: #00c1de;
74 | }
75 | .login>a{
76 | height: 50px;
77 | width:116px;
78 | font-size: 16px !important;
79 | display: block;
80 | }
81 | .login>a:hover{
82 | background: #0ac6e2;
83 | }
84 |
85 | /*header部分*/
86 | .head-outer{
87 | height: 115px;
88 | width:100%;
89 | background: #eef0f2;
90 | }
91 | /*.top-header{*/
92 | /*background: url("../images/nav-bg.png");*/
93 | /*height: 115px;*/
94 | /*width: 1200px;*/
95 | /*margin: 0px auto;*/
96 | /*}*/
97 | .top-header>img{
98 | margin-top: 10px;
99 | }
100 | .top-header>span{
101 | display: block;
102 | float: right;
103 | margin-top: 32px;
104 | margin-right: 987px;
105 | font-size: 26px;
106 | }
107 |
108 | .set-fixed{
109 | position: fixed !important;
110 | }
--------------------------------------------------------------------------------
/web/css/signin.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 40px;
3 | padding-bottom: 40px;
4 | background-color: #eee;
5 | }
6 |
7 | .form-signin {
8 | max-width: 330px;
9 | padding: 15px;
10 | margin: 0 auto;
11 | }
12 | .form-signin .form-signin-heading,
13 | .form-signin .checkbox {
14 | margin-bottom: 10px;
15 | }
16 | .form-signin .checkbox {
17 | font-weight: normal;
18 | }
19 | .form-signin .form-control {
20 | position: relative;
21 | height: auto;
22 | -webkit-box-sizing: border-box;
23 | -moz-box-sizing: border-box;
24 | box-sizing: border-box;
25 | padding: 10px;
26 | font-size: 16px;
27 | margin-bottom: 10px;
28 | }
29 |
30 | .form-signin .form-control:focus {
31 | z-index: 2;
32 | }
33 | .form-signin input[type="email"] {
34 | border-bottom-right-radius: 0;
35 | border-bottom-left-radius: 0;
36 | }
37 | .form-signin input[type="password"] {
38 | border-top-left-radius: 0;
39 | border-top-right-radius: 0;
40 | }
41 |
42 | .login-wrong{
43 | height: 30px;
44 | width: 300px;
45 | display: block;
46 | background: #fefcee;
47 | line-height: 30px;
48 | border: 1px solid #ff934c;
49 | margin: 0px auto;
50 | margin-bottom: 10px;
51 | }
52 |
53 | .icon-warning{
54 | background: url("/images/warning.jpg") no-repeat;
55 | display: block;
56 | height: 21px;
57 | width: 21px;
58 | float: left;
59 | margin-top: 4px;
60 | margin-left: 6px;
61 | margin-right: 7px;
62 | }
63 |
64 | .register-span{
65 | float: right;
66 | margin-top: 10px;
67 | margin-right: 10px;
68 | font-size: 18px;
69 | }
--------------------------------------------------------------------------------
/web/css/tourism.css:
--------------------------------------------------------------------------------
1 | .hot-div{
2 | width: 1000px;
3 | height: 288px;
4 | margin: 0px auto;
5 | border-bottom: 1px solid #b1b0b0;
6 | }
7 |
8 | .hot-div-three{
9 | width: 330px;
10 | text-align: center;
11 | float: left;
12 | height: auto;
13 | }
14 | .hot-div-three>img{
15 | border-radius: 25%;
16 | height: 207px;
17 | }
18 | .hot-div-three>a{
19 | display: block;
20 | }
21 | .hot-div-three>span{
22 | display: block;
23 | }
24 |
25 | .image-title{
26 | width: 1000px;
27 | height: 83px;
28 | margin: 14px auto;
29 | border-bottom: 1px solid #b1b0b0;
30 | }
31 | .image-title>img{
32 | float:right;
33 | }
34 |
35 | .more-div{
36 | width: 1000px;
37 | min-height: 10px;
38 | height: auto;
39 | margin: 0px auto;
40 | }
41 | .more-div-line{
42 | position: relative;
43 | width: 500px;
44 | float: left;
45 | margin-bottom: 30px;
46 | }
47 | .more-div-line>h3{
48 | display: inline-block;
49 | font-size: 30px;
50 | position: absolute;
51 | top: 12px;
52 | left: 339px;
53 | margin: 0px !important;
54 | }
55 | .more-div-line>span{
56 | display: inline-block;
57 | font-size: 30px;
58 | position: absolute;
59 | top: 51px;
60 | left: 339px;
61 | color: orange;
62 | }
63 | .more-div-line>a{
64 | display: inline-block;
65 | position: absolute;
66 | top: 96px;
67 | left: 339px;
68 | }
--------------------------------------------------------------------------------
/web/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/web/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/web/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/web/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/web/images/bag.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/bag.jpg
--------------------------------------------------------------------------------
/web/images/cost_bargin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/cost_bargin.png
--------------------------------------------------------------------------------
/web/images/cost_bargin_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/cost_bargin_more.png
--------------------------------------------------------------------------------
/web/images/cost_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/cost_bg.png
--------------------------------------------------------------------------------
/web/images/db/beijing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/db/beijing.jpg
--------------------------------------------------------------------------------
/web/images/db/default.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/db/default.jpg
--------------------------------------------------------------------------------
/web/images/db/luoyang.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/db/luoyang.jpg
--------------------------------------------------------------------------------
/web/images/db/taiyangdao.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/db/taiyangdao.jpg
--------------------------------------------------------------------------------
/web/images/enjoy.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/enjoy.jpg
--------------------------------------------------------------------------------
/web/images/flym.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/flym.jpg
--------------------------------------------------------------------------------
/web/images/order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/order.png
--------------------------------------------------------------------------------
/web/images/show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/show.png
--------------------------------------------------------------------------------
/web/images/train.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/train.jpg
--------------------------------------------------------------------------------
/web/images/user.jpg@64h_64w_2e:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/user.jpg@64h_64w_2e
--------------------------------------------------------------------------------
/web/images/warning.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iwts/Spring-MVC-mybatis-introduction-project/57de145f0e8f78adf09e15be12a37045ccd13490/web/images/warning.jpg
--------------------------------------------------------------------------------
/web/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 |
3 |
4 | $Title$
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/web/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------