修改端口

master
wany 2024-07-08 15:17:01 +08:00
parent bf332170aa
commit f2987e8b3c
3 changed files with 29 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import org.springframework.boot.SpringApplication;
@OpenAPIDefinition( @OpenAPIDefinition(
servers = { servers = {
@Server( @Server(
url = "http://localhost:24105/gunshiApp/xyt", url = "http://localhost:24101/gunshiApp/xyt",
description = "本地测试环境" description = "本地测试环境"
), ),
@Server( @Server(

View File

@ -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();
}
}

View File

@ -1,5 +1,5 @@
server: server:
port: 24105 port: 24101
servlet: servlet:
context-path: /gunshiApp/xyt context-path: /gunshiApp/xyt