| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | import org.springframework.boot.SpringApplication; | |
| 5 | 5 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
| 6 | 6 | import org.springframework.boot.autoconfigure.domain.EntityScan; | |
| 7 | + import org.springframework.cache.annotation.EnableCaching; | ||
| 7 | 8 | import org.springframework.context.annotation.ComponentScan; | |
| 8 | 9 | import org.springframework.context.annotation.Configuration; | |
| 9 | 10 | import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | |
@@ -38,6 +39,7 @@ | |||
| 38 | 39 | @EnableJpaRepositories("info.xiaomo.*.dao") | |
| 39 | 40 | @EnableScheduling | |
| 40 | 41 | @EnableAsync | |
| 42 | + @EnableCaching | ||
| 41 | 43 | @RestController | |
| 42 | 44 | public class XiaomoMain { | |
| 43 | 45 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,19 +21,11 @@ spring.jpa.show-sql=true | |||
| 21 | 21 | #other | |
| 22 | 22 | banner.location=config/banner-girl.txt | |
| 23 | 23 | ||
| 24 | - | ||
| 25 | - # \u591A\u73AF\u5883\u914D\u7F6E\u6587\u4EF6\u6FC0\u6D3B\u5C5E\u6027 | ||
| 26 | - spring.profiles.active=dev | ||
| 27 | - | ||
| 28 | - | ||
| 29 | 24 | # redis | |
| 30 | 25 | # Redis\u6570\u636E\u5E93\u7D22\u5F15\uFF08\u9ED8\u8BA4\u4E3A0\uFF09 | |
| 31 | 26 | spring.redis.database=0 | |
| 32 | - # Redis\u670D\u52A1\u5668\u5730\u5740 | ||
| 33 | - spring.redis.host=localhost | ||
| 34 | - # Redis\u670D\u52A1\u5668\u8FDE\u63A5\u7AEF\u53E3 | ||
| 27 | + spring.redis.host=115.29.137.34 | ||
| 35 | 28 | spring.redis.port=6379 | |
| 36 | - # Redis\u670D\u52A1\u5668\u8FDE\u63A5\u5BC6\u7801\uFF08\u9ED8\u8BA4\u4E3A\u7A7A\uFF09 | ||
| 37 | 29 | spring.redis.password= | |
| 38 | 30 | # \u8FDE\u63A5\u6C60\u6700\u5927\u8FDE\u63A5\u6570\uFF08\u4F7F\u7528\u8D1F\u503C\u8868\u793A\u6CA1\u6709\u9650\u5236\uFF09 | |
| 39 | 31 | spring.redis.pool.max-active=8 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments