application.yml 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# 服务器的配置项
server:
  port: 18083
  servlet:
    context-path: /management-api/

spring:
  # Application 的配置项
  application:
    name: management-web
  # Profile 的配置项
  profiles:
    active: local
14 15 16
  # SpringMVC 配置项
  mvc:
    throw-exception-if-no-handler-found: true # 匹配不到路径时,抛出 NoHandlerFoundException 异常
YunaiV's avatar
YunaiV committed
17
    static-path-pattern: /doc.html # 静态资源的路径
18 19 20 21 22

# Dubbo 配置项
dubbo:
  # Spring Cloud Alibaba Dubbo 专属配置
  cloud:
23
    subscribed-services: 'system-service' # 设置订阅的应用列表,默认为 * 订阅所有应用
24 25 26
  # Dubbo 服务消费者的配置
  consumer:
    timeout: 10000
27
    validation: true # 开启 Consumer 参数校验
28
    check: false # 本地启动,不进行校验,不一定会使用到未启动的服务,嘿嘿~
29 30 31 32 33 34 35 36
    UserSmsCodeRpc:
      version: 1.0.0
    UserRpc:
      version: 1.0.0
    OAuth2Rpc:
      version: 1.0.0
    AdminRpc:
      version: 1.0.0
37 38
    ResourceRpc:
      version: 1.0.0
39 40
    RoleRpc:
      version: 1.0.0
41 42
    PermissionRpc:
      version: 1.0.0
YunaiV's avatar
YunaiV committed
43 44
    DepartmentRpc:
      version: 1.0.0
YunaiV's avatar
YunaiV committed
45 46
    DataDictRpc:
      version: 1.0.0
47 48 49 50
    SystemAccessLogRpc:
      version: 1.0.0
    SystemExceptionLogRpc:
      version: 1.0.0
51 52
    ErrorCodeRpc:
      version: 1.0.0
53 54
    ProductCategoryRpc:
      version: 1.0.0
55 56
    ProductBrandRpc:
      version: 1.0.0
YunaiV's avatar
YunaiV committed
57 58
    ProductSpuRpc:
      version: 1.0.0
59 60
    ProductAttrRpc:
      version: 1.0.0
61 62
    CouponTemplateRpc:
      version: 1.0.0
YunaiV's avatar
YunaiV committed
63 64
    PromotionActivityRpc:
      version: 1.0.0
YunaiV's avatar
YunaiV committed
65 66 67 68
    BannerRpc:
      version: 1.0.0
    ProductRecommendRpc:
      version: 1.0.0
69 70 71 72 73 74 75

# Swagger 配置项
swagger:
  title: 管理后台
  description: 提供管理员管理的所有功能
  version: 1.0.0
  base-package: cn.iocoder.mall.managementweb.controller
YunaiV's avatar
YunaiV committed
76 77 78 79 80

# Actuator 监控配置项
management:
  server.port: 38087 # 独立端口,避免被暴露出去
  endpoints.web.exposure.include: '*' # 暴露所有监控端点