1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+
7+ <groupId >com.xncoding</groupId >
8+ <artifactId >springboot-shiro</artifactId >
9+ <version >1.0.0-SNAPSHOT</version >
10+ <packaging >jar</packaging >
11+
12+ <name >springboot-shiro</name >
13+ <description >集成Shiro权限管理</description >
14+
15+ <parent >
16+ <groupId >org.springframework.boot</groupId >
17+ <artifactId >spring-boot-starter-parent</artifactId >
18+ <version >1.5.9.RELEASE</version >
19+ <relativePath />
20+ </parent >
21+
22+ <properties >
23+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
24+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
25+ <java .version>1.8</java .version>
26+ <druid .version>1.1.2</druid .version>
27+ <mysql-connector .version>8.0.7-dmr</mysql-connector .version>
28+ <mybatis-plus .version>2.1.8</mybatis-plus .version>
29+ <mybatisplus-spring-boot-starter .version>1.0.5</mybatisplus-spring-boot-starter .version>
30+ <!-- 以下两项需要如果不配置,解析themleaft 会有问题-->
31+ <thymeleaf .version>3.0.7.RELEASE</thymeleaf .version>
32+ <thymeleaf-layout-dialect .version>2.2.2</thymeleaf-layout-dialect .version>
33+ </properties >
34+
35+ <dependencies >
36+ <dependency >
37+ <groupId >org.springframework.boot</groupId >
38+ <artifactId >spring-boot-starter-web</artifactId >
39+ <exclusions >
40+ <exclusion >
41+ <groupId >org.springframework.boot</groupId >
42+ <artifactId >spring-boot-starter-tomcat</artifactId >
43+ </exclusion >
44+ </exclusions >
45+ </dependency >
46+ <dependency >
47+ <groupId >org.springframework.boot</groupId >
48+ <artifactId >spring-boot-starter-jetty</artifactId >
49+ </dependency >
50+ <dependency >
51+ <groupId >org.springframework.boot</groupId >
52+ <artifactId >spring-boot-starter-jdbc</artifactId >
53+ </dependency >
54+ <dependency >
55+ <groupId >mysql</groupId >
56+ <artifactId >mysql-connector-java</artifactId >
57+ <version >${mysql-connector.version} </version >
58+ <scope >runtime</scope >
59+ </dependency >
60+ <dependency >
61+ <groupId >com.alibaba</groupId >
62+ <artifactId >druid</artifactId >
63+ <version >${druid.version} </version >
64+ </dependency >
65+ <!-- MyBatis plus增强和springboot的集成-->
66+ <dependency >
67+ <groupId >com.baomidou</groupId >
68+ <artifactId >mybatis-plus</artifactId >
69+ <version >${mybatis-plus.version} </version >
70+ </dependency >
71+ <dependency >
72+ <groupId >com.baomidou</groupId >
73+ <artifactId >mybatisplus-spring-boot-starter</artifactId >
74+ <version >${mybatisplus-spring-boot-starter.version} </version >
75+ </dependency >
76+
77+ <dependency >
78+ <groupId >org.springframework.boot</groupId >
79+ <artifactId >spring-boot-starter-test</artifactId >
80+ <scope >test</scope >
81+ </dependency >
82+ <dependency >
83+ <groupId >commons-io</groupId >
84+ <artifactId >commons-io</artifactId >
85+ <version >2.5</version >
86+ </dependency >
87+ <dependency >
88+ <groupId >org.apache.commons</groupId >
89+ <artifactId >commons-lang3</artifactId >
90+ <version >3.7</version >
91+ </dependency >
92+ <dependency >
93+ <groupId >commons-codec</groupId >
94+ <artifactId >commons-codec</artifactId >
95+ <version >1.11</version >
96+ </dependency >
97+ <dependency >
98+ <groupId >org.springframework.boot</groupId >
99+ <artifactId >spring-boot-starter-thymeleaf</artifactId >
100+ </dependency >
101+ <!-- thymeleaf模板中shiro标签-->
102+ <dependency >
103+ <groupId >com.github.theborakompanioni</groupId >
104+ <artifactId >thymeleaf-extras-shiro</artifactId >
105+ <version >2.0.0</version >
106+ </dependency >
107+ <!-- shiro 权限控制 -->
108+ <dependency >
109+ <groupId >org.apache.shiro</groupId >
110+ <artifactId >shiro-spring</artifactId >
111+ <version >1.4.0</version >
112+ <exclusions >
113+ <exclusion >
114+ <artifactId >slf4j-api</artifactId >
115+ <groupId >org.slf4j</groupId >
116+ </exclusion >
117+ </exclusions >
118+ </dependency >
119+ <!-- shiro ehcache (shiro缓存)-->
120+ <dependency >
121+ <groupId >org.apache.shiro</groupId >
122+ <artifactId >shiro-ehcache</artifactId >
123+ <version >1.4.0</version >
124+ <exclusions >
125+ <exclusion >
126+ <artifactId >slf4j-api</artifactId >
127+ <groupId >org.slf4j</groupId >
128+ </exclusion >
129+ </exclusions >
130+ </dependency >
131+ <!-- 验证码框架-->
132+ <dependency >
133+ <groupId >com.github.axet</groupId >
134+ <artifactId >kaptcha</artifactId >
135+ <version >0.0.9</version >
136+ </dependency >
137+
138+ </dependencies >
139+
140+ <build >
141+ <plugins >
142+ <plugin >
143+ <groupId >org.apache.maven.plugins</groupId >
144+ <artifactId >maven-compiler-plugin</artifactId >
145+ <version >3.6.1</version >
146+ <configuration >
147+ <!-- <proc>none</proc>-->
148+ <source >1.8</source >
149+ <target >1.8</target >
150+ </configuration >
151+ </plugin >
152+ <plugin >
153+ <groupId >org.apache.maven.plugins</groupId >
154+ <artifactId >maven-surefire-plugin</artifactId >
155+ <version >2.20</version >
156+ <configuration >
157+ <skip >true</skip >
158+ </configuration >
159+ </plugin >
160+ <plugin >
161+ <groupId >org.springframework.boot</groupId >
162+ <artifactId >spring-boot-maven-plugin</artifactId >
163+ <executions >
164+ </executions >
165+ </plugin >
166+ </plugins >
167+
168+ <resources >
169+ <resource >
170+ <directory >src/main/resources</directory >
171+ </resource >
172+ <resource >
173+ <directory >src/main/java</directory >
174+ <includes >
175+ <include >**/*.xml</include >
176+ </includes >
177+ </resource >
178+ </resources >
179+ </build >
180+
181+ </project >
0 commit comments