config
This commit is contained in:
20
pom.xml
20
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.0.1</version>
|
<version>3.0.1</version>
|
||||||
<relativePath/> <!-- lookup parent from repository -->
|
<relativePath /> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.flagnote</groupId>
|
<groupId>com.flagnote</groupId>
|
||||||
<artifactId>flagnote-service</artifactId>
|
<artifactId>flagnote-service</artifactId>
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user