forked from jhipster/jhipster-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,167 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/main/java/io/github/jhipster/sample/config/CacheConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
package io.github.jhipster.sample.config; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.autoconfigure.AutoConfigureAfter; | ||
import org.springframework.boot.autoconfigure.AutoConfigureBefore; | ||
import org.springframework.cache.annotation.EnableCaching; | ||
import org.springframework.context.annotation.*; | ||
|
||
import javax.cache.CacheManager; | ||
|
||
@Configuration | ||
@EnableCaching | ||
@AutoConfigureAfter(value = { MetricsConfiguration.class }) | ||
@AutoConfigureBefore(value = { WebConfigurer.class, DatabaseConfiguration.class }) | ||
public class CacheConfiguration { | ||
|
||
private final Logger log = LoggerFactory.getLogger(CacheConfiguration.class); | ||
|
||
private CacheManager cacheManager; | ||
|
||
public CacheConfiguration(CacheManager cacheManager) { | ||
this.cacheManager = cacheManager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns='http://www.ehcache.org/v3' | ||
xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd"> | ||
|
||
<cache-template name="simple"> | ||
<expiry> | ||
<ttl unit="seconds">3600</ttl> | ||
</expiry> | ||
<heap unit="entries">1000</heap> | ||
</cache-template> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.User" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.Authority" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.User.authorities" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.PersistentToken" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.User.persistentTokens" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.BankAccount" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.BankAccount.operations" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.Label" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.Label.operations" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.Operation" uses-template="simple"/> | ||
|
||
<cache alias="io.github.jhipster.sample.domain.Operation.labels" uses-template="simple"/> | ||
|
||
<!-- jhipster-needle-ehcache-add-entry --> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.