mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-09 08:30:55 +08:00
23 lines
503 B
Java
23 lines
503 B
Java
package com.openisle.config;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "springdoc.api-docs")
|
|
public class SpringDocProperties {
|
|
|
|
private List<ServerConfig> servers = new ArrayList<>();
|
|
|
|
@Data
|
|
public static class ServerConfig {
|
|
|
|
private String url;
|
|
private String description;
|
|
}
|
|
}
|