bootstrap.yml
1005 Bytes
application:
version: v1.0
logging:
config: classpath:logback-spring.xml
spring:
application:
name: sl-express-ms-base
main:
allow-circular-references: true #允许bean循环依赖
profiles:
active: local
mvc:
pathmatch:
#解决异常:swagger Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
#因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
matching-strategy: ant_path_matcher
sl:
mq:
enable: true #开启MQ,可以注入MQService使用,但是必须保证数据库有sl_fail_msg表
swagger:
package-path: com.sl.ms.base.controller
title: 神领物流 - 基础微服务接口文档
description: 该微服务完成车辆、省市区等基础数据的管理。
contact-name: 传智教育·研究院
contact-url: http://www.itcast.cn/
contact-email: yjy@itcast.cn
version: ${application.version}