Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinten10 committed Jan 20, 2019
1 parent 9666926 commit b3e5c27
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
37 changes: 12 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,36 @@
# Lifecat SSM

![java](https://img.shields.io/badge/language-java-red.svg)
![许可](https://img.shields.io/dub/l/vibe-d.svg)
:cat: :smiley_cat: :kissing_cat:
> 基于REST前后端分离架构. 使用SSM框架实现CRUD管理系统.
> Spring + SpringMVC + Mybatis + jQuery,搭建JavaWeb后台管理系统,使用shiro权限控制 + activemq消息队列 + mail邮件服务,实现了AOP日志服务 + 统一异常处理 + 自定义注解处理器等功能。
## 技术栈

#### [线上DEMO地址](http://www.lifecat.club/ssm)
前端:jquery,ajax,layor

> 登录用户名:admin 登录密码:123456
后端:spring,springmvc,mybatis,mail

## 项目部署
### 本地部署
## 使用
``` bash
# Clone下载项目到本地
git clone https://github.com/kevinten10/SSM-lifecat
# clone
git clone https://github.com/kevinten10/Lifecat-SSM

# 配置相关文件
进入src/main/resources包
# 配置
进入 /resources
1. jdbc.properties(必须) :修改为自己的数据库配置
2. mail.properties(非必须) :需要先去163开启邮箱服务,才可发送邮件

# 配置数据库
已导出数据库SQL文件, (建议使用navicat)lifecat.sql文件即可生成对应数据库以及DEMO数据
# 数据库
运行 /doc/sql 文件,生成数据表

# 配置tomcat
(使用idea)配置tomcat的Artifact时, Application context(即项目名)需要设为"/ssm"

# 启动运行
```

### 云服务器部署--tomcat多项目部署
```bash
# 部署Javaweb开发环境
# 生成war文件
# 放到对应tomcat目录下(可以放多个war,访问时根据项目名区分)
```
云部署相关教程: [centos云服务器部署Javaweb应用](https://blog.csdn.net/wsh596823919/article/details/79717993)

## DEMO
## 展示

![show](doc/image/show2-1.png)

![show](doc/image/show2-2.png)

![show](doc/image/show2-3.png)


Expand Down
13 changes: 13 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Docker部署Javaweb(war)
# Dockerfile for lifecat-ssm
# 1. Copy lifecat.war to current directory
# 2. Build with: docker build -t lifecat-ssm .
# 3. Run with: docker run -d -p 8092:8080 lifecat-ssm

FROM tomcat:8.0

MAINTAINER kevinten <[email protected]>

ADD ssm.war /usr/local/tomcat/webapps/

EXPOSE 8080
Binary file added docker/ssm.war
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/resources/jdbc.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://www.lifecat.club:3306/ssm?characterEncoding=utf-8&useSSL=false
jdbc.url=jdbc:mysql://localhost:3306/ssm?characterEncoding=utf-8&useSSL=false
jdbc.username=root
jdbc.password=wangshihao
jdbc.password=123456

0 comments on commit b3e5c27

Please sign in to comment.