mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-19 20:21:12 +00:00
Upgrade to Ehcache 3
I saw on twitter the reference of an article (in french): http://javaetmoi.com/2016/08/migrer-vers-spring-boot/ That article concludes with something along the lines of "Besides the EhCache and Maven configuration, Petclinic does not hold a single line of XML anymore". Looking at the code, we can remove more XML if you want. This PR migrates the cache infrastructure to EhCache 3 and JCache (JSR-107). This also reduces the number of dependencies.
This commit is contained in:
parent
864580702f
commit
a41b83a2fd
4 changed files with 35 additions and 459 deletions
28
pom.xml
28
pom.xml
|
|
@ -59,10 +59,6 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context-support</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
|
|
@ -74,18 +70,6 @@
|
|||
<artifactId>jstl</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- used for EhCacheCacheManager -->
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjrt</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Date and Time -->
|
||||
<dependency>
|
||||
<groupId>joda-time</groupId>
|
||||
|
|
@ -123,14 +107,12 @@
|
|||
|
||||
<!-- EhCache -->
|
||||
<dependency>
|
||||
<groupId>net.sf.ehcache</groupId>
|
||||
<groupId>javax.cache</groupId>
|
||||
<artifactId>cache-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ehcache</groupId>
|
||||
<artifactId>ehcache</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- Dandelion -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue