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