From 4a17a49fdfd4cce1bdeda37d6fd88dda11685043 Mon Sep 17 00:00:00 2001
From: Jesse-Ma <24167796@qq.com>
Date: Wed, 28 Dec 2022 16:47:40 +0800
Subject: [PATCH] config
---
pom.xml | 20 +++++++++++++++++++-
src/main/resources/application.yml | 11 ++++++++++-
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index d93a7b7..8a52da8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.springframework.boot
spring-boot-starter-parent
3.0.1
-
+
com.flagnote
flagnote-service
@@ -15,6 +15,7 @@
Demo project for Spring Boot
17
+ 2022.0.0
@@ -33,6 +34,12 @@
org.springframework.boot
spring-boot-starter-web
+
cn.hutool
hutool-all
@@ -49,6 +56,17 @@
test
+
+
+
+ org.springframework.cloud
+ spring-cloud-dependencies
+ ${spring-cloud.version}
+ pom
+ import
+
+
+
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 0f6a6a9..29f3a22 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,9 +1,16 @@
server:
address: 127.0.0.1
port: 20000
+
spring:
+ application:
+ name: flagnote-service
+ profiles:
+ active: dev
codec:
- max-in-memory-size: 128MB
+ max-in-memory-size: 10MB
+# config:
+# import: 'optional:configserver:http://localhost:9999'
data:
mongodb:
authentication-database: flagnote
@@ -16,6 +23,8 @@ spring:
socketKeepAlive: true
socketTimeout: 10000
+
+
management:
# server:
# address: 127.0.0.1