tcctyn-cloud/tcctyn-modules/tcctyn-iot/src/main/resources/application.yml

51 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tomcat
server:
port: 9004
spring:
application:
name: ${artifactId}
cloud:
nacos:
username: @nacos.username@
password: @nacos.password@
# 服务发现配置
discovery:
server-addr: 47.109.202.121:8858
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-@profiles.active@.${spring.cloud.nacos.config.file-extension}
config:
import:
# - optional:nacos:application-@profiles.active@.yml
- optional:nacos:${spring.application.name}-@profiles.active@.yml
# 海康运营管理中心接口配置
artemis:
path: /artemis
host: 116.53.205.228:14443
app-key: 21887937
app-secret: hwOzOEqxuPDz5frAnEXb
# 测试使用为了系统安全通常生产环境不建议开启swagger。
springdoc:
swagger-ui:
path: /swagger-ui.html
disable-swagger-default-url: true
# 关键修复配置 ↓
url: /v3/api-docs # 改用YAML格式
config-url: /v3/api-docs/swagger-config
api-docs:
path: /v3/api-docs
enabled: true
# 必须配置扫描 ↓
paths-to-match: /**
packages-to-scan: com.tcctyn.iot.hk.controller
cache:
disabled: true # 开发时禁用缓存