add getNoteTxt
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<version>3.0.3</version>
|
||||
<relativePath /> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.flagnote</groupId>
|
||||
@@ -14,7 +14,7 @@
|
||||
<description>Demo project for Spring Boot</description>
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
<spring-cloud.version>2022.0.0</spring-cloud.version>
|
||||
<spring-cloud.version>2022.0.1</spring-cloud.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
server:
|
||||
address: 127.0.0.1
|
||||
# address: 127.0.0.1
|
||||
port: 10000
|
||||
spring:
|
||||
application:
|
||||
@@ -10,13 +10,14 @@ spring:
|
||||
# import: 'optional:configserver:http://localhost:9999'
|
||||
data:
|
||||
redis:
|
||||
database: 10
|
||||
host: service.flagnote.com
|
||||
port: 36379
|
||||
port: 16379
|
||||
timeout: 10000
|
||||
poolMaxTotal: 10
|
||||
poolMaxIdle: 10
|
||||
poolMaxWait: 3
|
||||
password: 1qazx1qazx
|
||||
password: redis1qazx1qazx
|
||||
codec:
|
||||
max-in-memory-size: 10MB
|
||||
servlet:
|
||||
@@ -129,6 +130,14 @@ spring:
|
||||
- Method=POST
|
||||
filters:
|
||||
- ValidateNoteKey
|
||||
- id: getNoteTxt
|
||||
uri: lb://noteService
|
||||
order: -1
|
||||
predicates:
|
||||
- Path=/note/{key:[abcdefhikmnopqstuvwxyz23456789]{16}}.txt
|
||||
- Method=GET
|
||||
filters:
|
||||
- ValidateNoteKey
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user