依赖关系 parent(dependency springboot) <---- common(parent parent)
|<----admin(parent parent, dependency common)
|<----rest(parent parent, dependency common)
|<----chat(parent parent, dependency common)
<----portal(parent parent)
所用到的技术:
spring-boot
spring-boot-starter-thymeleaf
spring-boot-starter-data-redis
spring-boot-starter-data-jpa
spring-boot-starter-cache缓存支持
spring-boot-maven-plugin
maven-compiler-plugin
shiro-spring
shiro-web
shiro-ehcache
shiro-redis<!--redis缓存shiro-->
thymeleaf-extras-shiro
httpclient
netty-all
jackson-databind
druid
mysql-connector-java
json格式化类库:
fastjson
guava
jackson-annotations
Spring RESTful接口文档化:
springfox-swagger2
springfox-swagger-ui
nekohtml
talk is cheap , 详见配置文件。
parent project
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yourproject</groupId>
<artifactId>yourproject-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- 集中定义依赖版本号与基本配置 -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<druid.version>1.0.29</druid.version>
<fastjson.version>1.2.16</fastjson.version>
<guava.version>19.0</guava.version>
<shiro.version>1.3.2</shiro.version>
<shiro.th.version>1.2.1</shiro.th.version>
<shiro.redis.version>2.4.2.1-RELEASE</shiro.redis.version>
<nekohtml.version>1.9.22</nekohtml.version>
<fasterxml.version>2.8.0</fasterxml.version>
<springfox.version>2.2.2</springfox.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.0.5.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>com.github.theborakompanioni</groupId>
<artifactId>thymeleaf-extras-shiro</artifactId>
<version>${shiro.th.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-ehcache</artifactId>
<version>${shiro.th.ve