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

20
pom.xml
View File

@@ -6,7 +6,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.1</version>
<relativePath/> <!-- lookup parent from repository -->
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.flagnote</groupId>
<artifactId>flagnote-service</artifactId>
@@ -15,6 +15,7 @@
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
<spring-cloud.version>2022.0.0</spring-cloud.version>
</properties>
<dependencies>
<dependency>
@@ -33,6 +34,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
@@ -49,6 +56,17 @@
<scope>test</scope>
</dependency>
</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>
<plugins>
<plugin>

View File

@@ -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