Skip to content

Commit e3bf2e6

Browse files
author
zhengzhihao
committed
modify properties
1 parent 9e4886c commit e3bf2e6

3 files changed

Lines changed: 39 additions & 17 deletions

File tree

README.md

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
### java_server
2-
本项目是基于SpringMVC+spring+Mybatis的校园o2o电商项目的后台和管理平台。
2+
3+
----------
4+
<p align="center">
5+
<a href="http://www.oracle.com/technetwork/java/javase/overview/index.html"><img src="https://img.shields.io/badge/language-java%208.0-orange.svg"></a>
6+
<a href="https://www.jetbrains.com/idea/"><img src="https://img.shields.io/badge/platform-jetbrains-66FF99.svg"></a>
7+
<a href="https://www.jetbrains.com/idea/"><img src="https://img.shields.io/badge/platform-eclipse-46aae6.svg"></a>
8+
<img src="https://img.shields.io/badge/license-MIT%203.0-CC3333.svg">
9+
<img src="https://img.shields.io/badge/release-1.0.0-brightgreen.svg">
10+
</p>
11+
12+
本项目是校园o2o电商项目的服务端和管理平台代码,采用`SpringBoot-Mybatis`架构,集成了丰富的短信,推送,支付,权限管理等功能。
313

414
#### 更新
15+
16+
-------------
517
- 2017-7-21
618
>
719
1. 解决spring jar包过老,跑不起来问题。
@@ -10,24 +22,33 @@
1022

1123

1224
#### 主要功能
13-
- jpush推送
14-
- mob短信
15-
- ping++支付
16-
- 接口签名
17-
- web端数据管理
18-
- 权限管理
19-
- 多校区管理
25+
26+
--------
27+
| 功能 | 平台 |
28+
|------------|-----------------------------------|
29+
| 推送 | [极光](https://www.jiguang.cn/) |
30+
| 短信 | [mob](http://www.mob.com/) |
31+
| 支付 | [ping++](https://www.pingxx.com/)|
32+
| 接口签名 | -- |
33+
| web端数据管理 | [bootstrap-table](http://bootstrap-table.wenzhixin.net.cn/zh-cn/)|
34+
| 权限管理 | -- |
35+
| 多校区管理 | -- |
2036

2137
#### 运行
22-
clone下来的代码支持在eclipse或者intellij下运行,mysql支持,本地支持以springBoot的方式启动
38+
clone下来的代码支持在eclipse或者intellij下运行,mysql支持,本地支持以SpringBoot的方式启动
2339

24-
1. 将foryou.sql导入你自己的数据库中
25-
2. 修改数据库连接配置
26-
3. 执行mvn package 将项目达成war包,在tomcat下运行。
40+
1. 将项目根目录下foryou.sql导入你自己的数据库中
41+
2. 再application.properties修改数据库连接配置。
42+
3. 执行mvn package 将项目打成war包,在tomcat下运行。
2743
4. 或者更改pom.xml,讲packing方式更改为jar,执行mvn package后在jar包目录下运行```java -jar jar包路径```即可
2844
```
2945
<packaging>jar</packaging>
3046
```
47+
5. 本地测试及启动,执行PortraitApplication中的main函数即可启动内置的tomcat,浏览器中访问[localhost:8080/](http://localhost:8080)(端口可以在application.properties里面设置)
48+
即可进入管理端默认的登录页面。
49+
6. 校区管理员账号admin:123456,总校区管理员账号admin_1:123456。
3150

32-
## License
33-
java_server is available under the MIT license. See the LICENSE file for more info.
51+
#### License
52+
53+
-----------
54+
本项目基于MIT开源协议.

foryou.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
1010
Target Server Version : 50718
1111
File Encoding : 65001
1212

13-
Date: 2017-07-21 14:42:54
13+
Date: 2017-09-22 17:26:48
1414
*/
1515

1616
SET FOREIGN_KEY_CHECKS=0;
@@ -73,6 +73,7 @@ CREATE TABLE `campus_admin` (
7373
-- Records of campus_admin
7474
-- ----------------------------
7575
INSERT INTO `campus_admin` VALUES ('admin', 'e10adc3949ba59abbe56e057f20f883e', '0', '1', '2017-07-21');
76+
INSERT INTO `campus_admin` VALUES ('admin_1', 'e10adc3949ba59abbe56e057f20f883e', '1', '1', '2017-09-22');
7677

7778
-- ----------------------------
7879
-- Table structure for campus_admin_type

src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mybatis.config-location=classpath:mybatis.xml
1111
spring.datasource.url=jdbc:mysql://localhost:3306/foryou?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&nullNamePatternMatchesAll=true
1212
spring.datasource.name=foryou
1313
spring.datasource.username=root
14-
spring.datasource.password=*****
14+
spring.datasource.password=zc0829
1515
validationQuery=SELECT 1
1616

17-
server.port=7999
17+
server.port=8080

0 commit comments

Comments
 (0)