diff options
author | Vitaly Takmazov | 2022-04-07 11:13:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-08 08:09:37 +0300 |
commit | 912171165155ff78ad111c9c4043844c34567a42 (patch) | |
tree | 876278eb4338d73d294ef55f10471d08f2b3e38b /src/main/java/com/juick/API.java | |
parent | a6dff3324a55540877deaed23083ea502706a5ae (diff) |
Configure caches
* caching is disabled because of OOMs in production
Diffstat (limited to 'src/main/java/com/juick/API.java')
-rw-r--r-- | src/main/java/com/juick/API.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/API.java b/src/main/java/com/juick/API.java index 79ec209d..755e4fc4 100644 --- a/src/main/java/com/juick/API.java +++ b/src/main/java/com/juick/API.java @@ -21,10 +21,12 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration; +import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.ComponentScan; @SpringBootApplication @EnableAutoConfiguration(exclude = { MailSenderAutoConfiguration.class }) +@EnableCaching @ComponentScan(basePackages = {"com.juick.config", "com.juick.service", "com.juick.www"}) public class API { public static void main(String[] args) { |