This commit is contained in:
Jesse-Ma
2022-12-28 16:47:40 +08:00
parent 178ae14192
commit 4a17a49fdf
2 changed files with 29 additions and 2 deletions

18
pom.xml
View File

@@ -15,6 +15,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>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@@ -33,6 +34,12 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<!--
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
-->
<dependency> <dependency>
<groupId>cn.hutool</groupId> <groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId> <artifactId>hutool-all</artifactId>
@@ -49,6 +56,17 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

View File

@@ -1,9 +1,16 @@
server: server:
address: 127.0.0.1 address: 127.0.0.1
port: 20000 port: 20000
spring: spring:
application:
name: flagnote-service
profiles:
active: dev
codec: codec:
max-in-memory-size: 128MB max-in-memory-size: 10MB
# config:
# import: 'optional:configserver:http://localhost:9999'
data: data:
mongodb: mongodb:
authentication-database: flagnote authentication-database: flagnote
@@ -16,6 +23,8 @@ spring:
socketKeepAlive: true socketKeepAlive: true
socketTimeout: 10000 socketTimeout: 10000
management: management:
# server: # server:
# address: 127.0.0.1 # address: 127.0.0.1