Skip to content

Commit

Permalink
初次提交
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBling committed Jul 14, 2017
0 parents commit 4b66a38
Show file tree
Hide file tree
Showing 2,952 changed files with 127,453 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/.settings/
/target/
/.svn/
*.class
*.jar

# Eclipse project files
.classpath
.project
.DS_Store
149 changes: 149 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<p align="center">
是<a href="https://github.com/JoeyBling/SpringBoot_MyBatisPlus">
SpringBoot集成MyBatisPlus
</a> 升级版的maven多模块开发
</p>


**项目结构**
```
wstro
├─sql 项目SQL语句
├─App 项目启动类
├─config 配置信息
├─controller 控制器
│ ├─admin 后台管理员控制器
├─service 业务逻辑接口
│ ├─impl 业务逻辑接口实现类
├─dao 数据访问接口
├─entity 数据持久化实体类
├─datasources 多数据源工具类
├─shiro Shiro验证框架
├─task Quartz定时任务
├─util 项目所用的的所有工具类
│ ├─freemaker 自定义FreeMaker标签
├──resources
│ ├─mapper SQL对应的XML文件
│ ├─templates FreeMaker模版
├──webapp
│ ├─statics 静态资源
│ ├─upload 上传文件
│ ├─WEB-INF
│ ├─templates 页面FreeMaker模版
```
<br>


**技术选型:**
- 核心框架:Spring Boot 1.5.1
- 安全框架:Apache Shiro
- 视图框架:Spring MVC
- 持久层框架:MyBatis MyBatisPlus
- 缓存技术:EhCache,Redis
- 定时器:Quartz
- 数据库连接池:Druid
- 日志管理:SLF4J、Log4j
- 模版技术:FreeMaker
- 页面交互:BootStrap、Layer等
<br>


**本地部署**
- 通过git下载源码
- 创建数据库wstro,数据库编码为UTF-8
- 执行sql/wstro.sql文件,初始化数据
- 修改application-dev.properties,更新MySQL账号和密码
- Eclipse、IDEA运行App.java,则可启动项目
- 项目访问路径:http://localhost:8088/wstro
- 账号密码:admin/admin



数据库文件: /sql/wstro.sql 直接运行mysql
更改配置文件application-*.properties的数据库连接信息
spring.datasource.url
spring.datasource.username
spring.datasource.password

项目整合了多数据源,注解方法 @DataSource(这里写数据源名称) 如 DataSourceContextHolder.DATA_SOURCE_B 建议数据源名称都定义在此类中,方便维护
多数据源需要自己去开启,具体在DataSourceConfig.java



启动说明:
项目依赖mysql、Redis服务。

启动命令:
(如果有问题。请尝试强制删除target目录下的所有文件)
mvn clean package -P build tomcat7:run-war-only -f pom.xml

打包命令:
(如果有问题。请尝试强制删除target目录下的所有文件)
mvn clean package spring-boot:repackage
会在target目录生成wstro.war 直接部署Tomcat运行

访问地址:
localhost:8080/admin
注意:本项目使用的是 JDK1.8
可自行修改 pom文件的 maven.compiler.source maven.compiler.target为1.7




部署:application.properties更改指定部署模式还是开发模式 dev / prod
分别对应application-dev.properties / application-prod.properties


修改dev / prod 文件
SEO:
seo.author 作者
seo.keywords 关键词
seo.description 网页描述 (如果是中文,请进行Unicode转码 http://tool.chinaz.com/tools/unicode.aspx)
server.port 服务端口 (部署在Tomcat上以Tomcat为准)
server.contextPath 服务器上下文路径 (部署在Tomcat上以Tomcat为准)
spring.mail 设置邮件的端口 账号及密码
spring.redis 设置Redis 服务器地址 密码 及端口
spring.datasource.url 设置数据库连接信息 账号(username) 及 密码(password)


开发者:

调试直接运行 com.wstro.App.java Run As java Application

打包:
mvn运行 mvn clean package spring-boot:repackage
最后在target目录下面生成一个war包 直接部署Tomcat运行


此处Redis缓存注解和EhCache缓存注解只能使用1个
使用
@Primary标注




**演示效果图:**
![演示效果图](https://raw.githubusercontent.com/JoeyBling/JoeyBling.github.io/master/screenshots/20170711085331.png "在这里输入图片标题")
![演示效果图](https://raw.githubusercontent.com/JoeyBling/JoeyBling.github.io/master/screenshots/20170711085520.png "在这里输入图片标题")
![演示效果图](https://github.com/JoeyBling/JoeyBling.github.io/blob/master/screenshots/20170711093453.png?raw=true "在这里输入图片标题")
![演示效果图](https://raw.githubusercontent.com/JoeyBling/JoeyBling.github.io/master/screenshots/20170711093508.png "在这里输入图片标题")
![演示效果图](https://raw.githubusercontent.com/JoeyBling/JoeyBling.github.io/master/screenshots/20170711093523.png "在这里输入图片标题")
![演示效果图](https://raw.githubusercontent.com/JoeyBling/JoeyBling.github.io/master/screenshots/20170711093544.png "在这里输入图片标题")
17 changes: 17 additions & 0 deletions hqc_mini_app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

App({
onLaunch: function () {
this.login();
},
login: function(){

},
getUserInfo: function (cb) {

},
globalData: {
userInfo: null,
visitDate:"", //订单的游玩时间
domain:"https://65b5a65d.ngrok.io"
}
})
37 changes: 37 additions & 0 deletions hqc_mini_app/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"pages":[
"pages/index/index",
"pages/scheduledGoods/scheduledGoods",
"pages/order/order",
"pages/orderDetail/orderDetail",
"pages/calendar/calendar"
],

"tabBar": {
"color": "#858585",
"selectedColor": "#008842",
"backgroundColor": "#eaecef",
"borderStyle": "white",
"list":[
{
"pagePath": "pages/index/index",
"iconPath": "images/icons/btn-tabs_01.png",
"selectedIconPath": "images/icons/btn-tabs_07.png",
"text": "微信购票"
},
{
"pagePath": "pages/order/order",
"iconPath": "images/icons/btn-tabs_05.png",
"selectedIconPath": "images/icons/btn-tabs_09.png",
"text": "我的订单"
}
]
},
"window":{
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#000",
"navigationBarTitleText": "东部华侨城",
"navigationBarTextStyle": "white"
},
"debug": true
}
121 changes: 121 additions & 0 deletions hqc_mini_app/app.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**app.wxss**/
page {
font-family: "Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
background-color: #fff;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}

.box {
display: flex;
}

.box-lr {
flex-direction: row;
}

.box-rl {
flex-direction: row-reverse;
}

.box-tb {
flex-direction: column;
}

.box-bt {
flex-direction: column-reverse;
}

.box-pack-center {
justify-content: center;
}

.box-pack-start {
justify-content: flex-start;
}

.box-pack-end {
justify-content: flex-end;
}

.box-pack-between {
justify-content: space-between;
}

.box-pack-around {
justify-content: space-around;
}

.box-align-center {
align-items: center;
}

.box-align-start {
align-items: flex-start;
}

.box-align-end {
align-items: flex-end;
}

.self-align-center {
align-self: center;
margin: 0 auto;
}

.self-align-start {
align-self: flex-start;
}

.self-align-end {
align-self: flex-end;
}

.self-align-stretch {
align-self: stretch;
}

.box-wrap {
flex-wrap: wrap;
}

.box-nowrap {
flex-wrap: nowrap;
}

.flex {
flex-grow: 1;
}

.shrink {
flex-shrink: 1;
}
.bg {
background-image: linear-gradient(to bottom, #faefe7, #ffcbd7);
overflow: hidden;
}
.brown-color {
color: #784344;
}

.white-color {
color: #fff;
}
.gray-color {
color: #ccc;
}
.fs24 {
font-size: 24rpx;
}
.fs28 {
font-size: 28rpx;
}
.fs32 {
font-size: 32rpx;
}
.fs36 {
font-size: 36rpx;
}

Binary file added hqc_mini_app/images/icons/btn-tabs_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/btn-tabs_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/iocn_home_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/iocn_home_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/iocn_home_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/icons/iocn_home_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hqc_mini_app/images/sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4b66a38

Please sign in to comment.