mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-05-09 03:57:34 +08:00
降低springboot版本为2.4.6,为了更好兼容其他框架。
整合knife4j生成接口文档
This commit is contained in:
@@ -17,9 +17,6 @@ spring:
|
||||
serialization:
|
||||
WRITE_DATES_AS_TIMESTAMPS: false
|
||||
FAIL_ON_EMPTY_BEANS: false
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
|
||||
|
||||
@@ -38,19 +35,6 @@ mybatis-plus:
|
||||
# 删除后
|
||||
logic-delete-value: 0
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
production: false # 生产环境配置需设为true
|
||||
basic:
|
||||
enable: false # 开启Swagger的Basic认证功能,默认是false
|
||||
username: lianlian # Basic认证用户名
|
||||
password: lianlian123 # Basic认证密码
|
||||
swagger:
|
||||
title: springboot基础框架
|
||||
description: springboot基础框架
|
||||
version: 1.0.0
|
||||
base-package: cn.xf.basedemo.controller
|
||||
|
||||
# 参考文章 https://zhuanlan.zhihu.com/p/145359625
|
||||
management:
|
||||
endpoints:
|
||||
|
||||
Reference in New Issue
Block a user