Skip to content

Commit

Permalink
add redis dep, conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Dec 20, 2024
1 parent 9be8e60 commit 9584387
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
21 changes: 21 additions & 0 deletions springBootBlog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,27 @@
<scope>test</scope>
</dependency>

<!-- redis dep for cache -->

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>3.0.11</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.11.1</version>
</dependency>

</dependencies>

<build>
Expand Down
8 changes: 7 additions & 1 deletion springBootBlog/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ spring.security.oauth2.client.registration.github.clientId=8c3b3cfa5ba107d7ad25
spring.security.oauth2.client.registration.github.clientSecret=
# google login
# custom error html
server.error.path=/error
server.error.path=/error

# redis
spring.cache.type=redis
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.timeout=60000

0 comments on commit 9584387

Please sign in to comment.