add getNoteTxt
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.0.1</version>
|
<version>3.0.3</version>
|
||||||
<relativePath /> <!-- lookup parent from repository -->
|
<relativePath /> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.flagnote</groupId>
|
<groupId>com.flagnote</groupId>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<description>Demo project for Spring Boot</description>
|
<description>Demo project for Spring Boot</description>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<spring-cloud.version>2022.0.0</spring-cloud.version>
|
<spring-cloud.version>2022.0.1</spring-cloud.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
address: 127.0.0.1
|
# address: 127.0.0.1
|
||||||
port: 10000
|
port: 10000
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
@@ -10,13 +10,14 @@ spring:
|
|||||||
# import: 'optional:configserver:http://localhost:9999'
|
# import: 'optional:configserver:http://localhost:9999'
|
||||||
data:
|
data:
|
||||||
redis:
|
redis:
|
||||||
|
database: 10
|
||||||
host: service.flagnote.com
|
host: service.flagnote.com
|
||||||
port: 36379
|
port: 16379
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
poolMaxTotal: 10
|
poolMaxTotal: 10
|
||||||
poolMaxIdle: 10
|
poolMaxIdle: 10
|
||||||
poolMaxWait: 3
|
poolMaxWait: 3
|
||||||
password: 1qazx1qazx
|
password: redis1qazx1qazx
|
||||||
codec:
|
codec:
|
||||||
max-in-memory-size: 10MB
|
max-in-memory-size: 10MB
|
||||||
servlet:
|
servlet:
|
||||||
@@ -129,6 +130,14 @@ spring:
|
|||||||
- Method=POST
|
- Method=POST
|
||||||
filters:
|
filters:
|
||||||
- ValidateNoteKey
|
- 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