spring boot集成shiro与ehcache
主要分这么几个步骤:在pom.xml中加入缓存依赖;注入缓存;
(a) 在pom.xml文件中加入依赖:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!-- shiro ehcache -->
<
dependency
>
<
groupId
>org.apache.shiro</
groupId
>
<
artifactId
>shiro-ehcache</
artifactId
>
<
version
>1.2.2</
version
>
</
dependency
>
<!--
包含支持UI模版(Velocity,FreeMarker,JasperReports),
邮件服务,
脚本服务(JRuby),
缓存Cache(EHCache),
任务计划Scheduling(uartz)。
-->
<
dependency
>
<
groupId
>org.springframework</
|