[TOC]nginx
<font color="red" size="8">开源位置</font>git
springboot基于spring和mvc作了不少默认的封装。这样作的好处极大的方便了开发者的效率。尽管与此咱们每一个人仍是须要有一些本身我的的脚手架。方便咱们秒级搭建项目。此项目就是基于次为出发点进行了企业的规范设置。github
基于Spring + SpringMVC + Mybatis敏捷开发的一套系统框架。zxhtom
目前是针对管理端进行封装的一个架构。里面内置的页面也是为了方便管理和开发的。可是架构上预留出先后分离的方案。次架构全部的设计都与先后分离思想耦合。shiro-service
模块就能够用来作单点登陆。只不过在架构中他不单单是单点登陆的功能。他的做用是对第三方服务的一个模块。它能够将系统中的接口经过注解讲接口发布给第三方。就是支付宝、微信等目前推出的商户功能。既然是架构眼观就得放远点。万一实现了呢。web
除此以外架构还提供了数据自动生成
、定时任务
、系统监控
、用户管理
、日志管理
等模块。技术点包含redis集群和单机
、验证码功能
、双数据源
、接口规范
、swagger
、druid
、websocket
等等。redis
经过次脚手架简化了项目的配置。只须要引入spring
<dependencies> <dependency> <groupId>com.github.zxhTom</groupId> <artifactId>framework-root</artifactId> <version>${framework.version}</version> <type>POM</type> <scope>IMPORT</scope> </dependency> <dependency> <groupId>com.github.zxhTom</groupId> <artifactId>framework-core</artifactId> <version>${framework.version}</version> </dependency> </dependencies>
这两个jar。而后项目中创建springboot启动类就好了。这里须要在启动类上添加扫包注解。包路径至少得包含com.zxhtom
.由于个人脚手架都是在com.zxhtom包下进行开发的。sql
其余的细节配置就是在application.yml中配置了。这里zxhtom提供一个配置模板(在framework-core模块中的application_back.yml)
关于配置里面说明。后续会出详细文档说明。docker
ps : 由于项目中用到的某些jar包由于种种缘由中央仓库还没进行更新。因此这里为了保证项目可以正常的运行。运行读者本身手动安装至本地仓库数据库
jar下载地址 (提取码:k1ne)
bottom项目在线clone地址
至于手动安装至本地仓库命令 mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
segmentfault
package com.zxhtom; import com.zxhtom.config.CoreConfig; import com.zxhtom.config.QuickStartConfig; import com.zxhtom.config.SpringfoxConfig; import com.zxhtom.config.WebMvcConfig; import com.zxhtom.framework_task.conf.TaskConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Import; /** * 入口类, 扫描并注入其余配置类和服务 */ @SpringBootApplication @EnableCaching @ComponentScan("com.zxhtom") @Import({QuickStartConfig.class,CoreConfig.class,TaskConfig.class,WebMvcConfig.class,SpringfoxConfig.class}) public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
<font color="red" size="8">开源位置</font>
加入战队