【建新科技部分项目swagger访问配置及地址】

复制代码
如果配置修改
springfox:
  documentation:
    enabled: true
    swagger-ui:
      base-url: /
访问是如下
http://localhost:8910/swagger-ui/index.html#
复制代码
如果  base-url: /swagger/
复制代码
http://localhost:8910/swagger/swagger-ui/index.html#

http://localhost:8910/swagger/api-doc

application-dev.yml
java 复制代码
spring:
  # 安全配置
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

springfox:
  documentation:
    enabled: true
    swagger-ui:
      base-url: /swagger/

swagger:
  enabled: true
  pathMapping: /
  title: API 文档
  description: API 文档
  version: 1.0
  contact:
    name: developer
    email: developer@example.com
  base-package: com.jxtech.hkcms

# 日志配置
logging:
  level:
    root: INFO
    org.springframework: INFO
    com.jxtech: DEBUG
    springfox: INFO
  pattern:
    console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
    file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
  file:
    path: log
    name: hkcms.log

pom.xml

java 复制代码
<dependency>
		<groupId>io.springfox</groupId>
		<artifactId>springfox-core</artifactId>
		<version>3.0.0</version>
		<scope>compile</scope>
	</dependency>
	<!--swagger--> 
	<dependency>
		<groupId>io.springfox</groupId>
		<artifactId>springfox-boot-starter</artifactId>
		<version>3.0.0</version>
	</dependency>
	<dependency>
		<groupId>com.github.xiaoymin</groupId>
		<artifactId>knife4j-spring-ui</artifactId>
		<version>3.0.3</version>
	</dependency>

实体类上

java 复制代码
@MapperXml(compId = "base", xmlFile = "/config/base/bean/AimAttribute.xml")
public class AimAttribute extends AbstractBean {
}

iac-hkcms

相关推荐
远翔调光芯片^1382879887214 小时前
Type-C接口统一了,但充电协议没统一,终端设备如何解决取电难题?
人工智能·科技·物联网·智能家居·能源
合米AI SOP系统17 小时前
新能源零部件|密封锁付装配工位,合米科技AI SOP视觉防错规避工艺遗漏带来的售后故障
大数据·人工智能·科技
Zentceh18 小时前
0.001Lux是什么概念
图像处理·人工智能·科技·计算机视觉·车载系统·无人机·智能硬件
河南花仙子科技19 小时前
小游戏社交裂变功能的高阶设计思路
大数据·科技·游戏
芯巧电子20 小时前
84. OrCAD中怎么浏览DRC检测后的全部DRC错误?I Cadence Allegro 电子设计 快问快答
科技·cadence·软件·allegro·orcad
千舟软件20 小时前
【宿舍管理小程序】新生入住不靠纸质表
大数据·运维·服务器·科技·业界资讯
合米AI SOP系统21 小时前
医疗器械|组件组装工位,合米科技AI SOP视觉防错系统满足高合规要求下的精益生产
大数据·人工智能·科技
蓝速科技21 小时前
数字人一体机芯片选型:RK3576 与 X86 场景化对比指南丨蓝速科技
大数据·运维·数据库·人工智能·科技
意图共鸣1 天前
思想开源:意图共鸣科技把一整套“AI认知体系”带进了AtomGit
人工智能·科技
TMT星球1 天前
曹操出行AI打车接入荣耀YOYO,AI出行服务首次登陆主流手机智能体
人工智能·科技