Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .classpath

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/build/
.idea/
target/
31 changes: 0 additions & 31 deletions .project

This file was deleted.

6 changes: 3 additions & 3 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="text2">
<wb-module deploy-name="house">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="text2"/>
<property name="java-output-path" value="/text2/build/classes"/>
<property name="context-root" value="house"/>
<property name="java-output-path" value="/house/build/classes"/>
</wb-module>
</project-modules>
109 changes: 80 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,89 @@
# house
基于ssm的房屋租赁管理系统
功能介绍
房源信息模块:
房源信息展示、房源信息更新、房源信息增加、房源信息删除
账户管理模块:
账户登录、账户绑定、账户管理
租金结算模块:
每月租金信息、租金交付功能、月租金收入总额统计
房屋租赁合同管理模块:
房屋租赁合同录入、房屋租赁合同展示、房屋租赁价格修改、房屋租赁合同终止
报障模块:
租客报账、管理员报障审核、租客报障统计
日程模块:
收租日程显示
项目介绍
框架:
项目整体采用spring+springMVC+mybatis框架

数据库:
使用mysql数据库

服务器:
Tomcat服务器部署


项目功能部分截图
登录
管理员帐户:admin 密码:12345
租客帐户:zyx 密码:123456
**基于ssm的房屋租赁管理系统**

## 1.部署相关
[编写Dockerfile定制tomcat8镜像](https://www.yuque.com/shihuangzhedebiji/web-server/dwxivb)

我在pom打包时把war包放在了docker文件夹下

**Dockerfile**
```bash
# 直接从docker提供的远程镜像仓库中拉取最新的tomcat组件
FROM tomcat:8.5.51

# 本镜像的制作者的信息
MAINTAINER "eyck.cui" <eyck.cui@foxmail.com>

# 把该容器的时区设置为上海时区
ENV TZ=Asia/Shanghai

# 把当前文件目录下的docker-ssm.war移动到容器中tomcat自动启动的目录下
COPY ./house.war /usr/local/tomcat/webapps/
```
### 1.1 打包

![打包](http://ww1.sinaimg.cn/large/d1db9fd3gy1ga48p0s8dzj212o0jajuc.jpg)

### 1.2 服务器docker库

![服务器docker库](http://ww1.sinaimg.cn/large/d1db9fd3gy1ga48qvpokyj20y50om3zz.jpg)

### 1.3 docker-compose部署

![docker-compose部署](http://ww1.sinaimg.cn/large/d1db9fd3gy1ga48tuufucj211j0lhju4.jpg)

## 功能介绍

- 房源信息模块
- 房源信息展示
- 房源信息更新
- 房源信息增加
- 房源信息删除
- 账户管理模块
- 账户登录
- 账户绑定
- 账户管理
- 租金结算模块
- 每月租金信息
- 租金交付功能
- 月租金收入总额统计
- 房屋租赁合同管理模块
- 房屋租赁合同录入
- 房屋租赁合同展示
- 房屋租赁价格修改
- 房屋租赁合同终止
- 报障模块
- 租客报账
- 管理员报障审核
- 租客报障统计
- 日程模块
- 收租日程显示
## 框架介绍
原始项目:
- Spring
- SpringMVC
- MyBatis
- MySQL数据库
- Tomcat服务器

新增:
- Docker部署
- Maven 项目版本管理工具


## 项目功能部分截图
登录
- 管理员帐户:`admin` 密码:`12345`
- 租客帐户:`zyx` 密码:`123456`
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/1.png)
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/2.png)
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/3.png)
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/4.png)
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/5.png)
![Alt text](https://github.com/chiuwingyan/house/blob/master/img/6.png)

## Demo地址

[Demo在线](http://47.101.145.181:9898/house/login.action)

个人服务器跑的,请勿瞎搞谢谢
Binary file removed WebContent/WEB-INF/lib/jackson-annotations-2.4.0.jar
Binary file not shown.
52 changes: 0 additions & 52 deletions WebContent/WEB-INF/web.xml

This file was deleted.

11 changes: 11 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 直接从docker提供的远程镜像仓库中拉取最新的tomcat组件
FROM tomcat:8.5.51

# 本镜像的制作者的信息
MAINTAINER "eyck.cui" <eyck.cui@foxmail.com>

# 把该容器的时区设置为上海时区
ENV TZ=Asia/Shanghai

# 把当前文件目录下的docker-ssm.war移动到容器中tomcat自动启动的目录下
COPY ./house.war /usr/local/tomcat/webapps/
15 changes: 15 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '2'
services:
house:
build:
context: ./
dockerfile: ./Dockerfile
ports:
- 9898:8080
extra_hosts:
- "tools-jdbc:172.17.0.1"
- "tools-docker:172.17.0.1"
restart: always
container_name: house
hostname: tools-docker
image: house
Binary file added docker/house.war
Binary file not shown.
50 changes: 50 additions & 0 deletions house.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="EclipseModuleManager">
<libelement value="jar://$MODULE_DIR$/WebContent/WEB-INF/lib/asm-3.3.1.jar!/" />
<conelement value="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0" />
<conelement value="org.eclipse.jst.j2ee.internal.web.container" />
<conelement value="org.eclipse.jst.j2ee.internal.module.container" />
<src_description expected_position="0">
<src_folder value="file://$MODULE_DIR$/src" expected_position="0" />
</src_description>
</component>
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/lib" relative="WEB-INF/lib" />
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
</webroots>
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="library" name="lib" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 8.5.50" level="application_server_libraries" />
<orderEntry type="library" name="Maven: com.mchange:c3p0:0.9.5.2" level="project" />
<orderEntry type="library" name="Maven: com.mchange:mchange-commons-java:0.2.11" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.projectlombok:lombok:1.18.10" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.10.1" level="project" />
</component>
</module>
Binary file added lib/javax.annotation.jar
Binary file not shown.
Binary file added lib/javax.ejb.jar
Binary file not shown.
Binary file added lib/javax.jms.jar
Binary file not shown.
Binary file added lib/javax.persistence.jar
Binary file not shown.
Binary file added lib/javax.resource.jar
Binary file not shown.
Binary file added lib/javax.servlet.jar
Binary file not shown.
Binary file added lib/javax.servlet.jsp.jar
Binary file not shown.
Binary file added lib/javax.transaction.jar
Binary file not shown.
69 changes: 69 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<groupId>store.zabbix</groupId>
<artifactId>house</artifactId>
<version>1.0.0</version>
<name>${project.artifactId}</name>
<packaging>war</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!--数据库连接池-->
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.2</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>

</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<configuration>
<warName>${project.artifactId}</warName>
<webResources>
<resource>
<directory>lib/</directory>
<targetPath>WEB-INF/lib</targetPath>
<includes>
<include>*.jar</include>
</includes>
</resource>
</webResources>
<outputDirectory>${basedir}/docker/</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
Loading