创建新 user 服务项目
This commit is contained in:
6
user/user-start/src/main/resources/application-test.yaml
Normal file
6
user/user-start/src/main/resources/application-test.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
swagger:
|
||||
enable: true
|
||||
title: 用户子系统
|
||||
description: 用户子系统
|
||||
version: 1.0.0
|
||||
base-package: cn.iocoder.mall.user.application.controller
|
||||
32
user/user-start/src/main/resources/application.yaml
Normal file
32
user/user-start/src/main/resources/application.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
spring:
|
||||
application:
|
||||
name: user-application
|
||||
|
||||
# Spring Cloud 配置项
|
||||
cloud:
|
||||
# Spring Cloud Sentinel 配置项
|
||||
sentinel:
|
||||
transport:
|
||||
dashboard: s1.iocoder.cn:12088 # Sentinel Dashboard 服务地址
|
||||
eager: true # 项目启动时,直接连接到 Sentinel
|
||||
|
||||
# server
|
||||
server:
|
||||
port: 18082
|
||||
servlet:
|
||||
context-path: /user-api/
|
||||
|
||||
swagger:
|
||||
enable: true # 暂时不去掉
|
||||
title: 用户子系统
|
||||
description: 用户子系统
|
||||
version: 1.0.0
|
||||
base-package: cn.iocoder.mall.user.application.controller
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,env,metrics,prometheus
|
||||
metrics:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user