From 9d73209f8b1d305d7107bf2ab88ab7f3577be76c Mon Sep 17 00:00:00 2001
From: Jesse-Ma <24167796@qq.com>
Date: Mon, 27 Feb 2023 14:22:53 +0800
Subject: [PATCH] add getNoteTxt
---
pom.xml | 4 ++--
src/main/resources/application.yml | 15 ++++++++++++---
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8c8d8fe..0b33c7d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.0.1
+ 3.0.3
com.flagnote
@@ -14,7 +14,7 @@
Demo project for Spring Boot
17
- 2022.0.0
+ 2022.0.1
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index f3b65f4..935aaa2 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -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