修改端口
parent
bf332170aa
commit
f2987e8b3c
|
|
@ -11,7 +11,7 @@ import org.springframework.boot.SpringApplication;
|
|||
@OpenAPIDefinition(
|
||||
servers = {
|
||||
@Server(
|
||||
url = "http://localhost:24105/gunshiApp/xyt",
|
||||
url = "http://localhost:24101/gunshiApp/xyt",
|
||||
description = "本地测试环境"
|
||||
),
|
||||
@Server(
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
package com.gunshi.project.xyt.config;
|
||||
|
||||
import org.springdoc.core.models.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Created by wanyan on 2024/7/8
|
||||
*
|
||||
* @author wanyan
|
||||
* @version 1.0
|
||||
*/
|
||||
@Configuration
|
||||
public class OpenApiConfig {
|
||||
|
||||
@Bean
|
||||
public GroupedOpenApi XytOpenApi() {
|
||||
String[] packagesToScan = {
|
||||
"com.gunshi.project.xyt.controller",
|
||||
};
|
||||
return GroupedOpenApi.builder()
|
||||
.group("xyt")
|
||||
.packagesToScan(packagesToScan)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 24105
|
||||
port: 24101
|
||||
servlet:
|
||||
context-path: /gunshiApp/xyt
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue