config
This commit is contained in:
20
pom.xml
20
pom.xml
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user