fix:fix app starting failed when user using custom OpenAPI bean. (#1414)

Co-authored-by: Haotian Zhang <skyebefreeman@qq.com>
pull/1415/head
Fishtail 4 months ago committed by GitHub
parent fb2971bf8c
commit 1f258674c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,3 +23,4 @@
- [feat:add trace report support.](https://github.com/Tencent/spring-cloud-tencent/pull/1411) - [feat:add trace report support.](https://github.com/Tencent/spring-cloud-tencent/pull/1411)
- [fix: fix lossless test case unstable issues.](https://github.com/Tencent/spring-cloud-tencent/pull/1412) - [fix: fix lossless test case unstable issues.](https://github.com/Tencent/spring-cloud-tencent/pull/1412)
- [feat:support consul service update task.](https://github.com/Tencent/spring-cloud-tencent/pull/1413) - [feat:support consul service update task.](https://github.com/Tencent/spring-cloud-tencent/pull/1413)
- [fix:fix app starting failed when user using custom OpenAPI bean.](https://github.com/Tencent/spring-cloud-tencent/pull/1414)

@ -89,7 +89,7 @@
<properties> <properties>
<!-- Project revision --> <!-- Project revision -->
<revision>1.14.0-2023.0.0-RC2</revision> <revision>2.0.0.0-2023.0.0-RC2</revision>
<!-- Spring Framework --> <!-- Spring Framework -->
<spring.framework.version>6.1.6</spring.framework.version> <spring.framework.version>6.1.6</spring.framework.version>

@ -46,7 +46,7 @@ public class PolarisContractProperties implements ContractProperties {
/** /**
* Group to create swagger docket. * Group to create swagger docket.
*/ */
private String group = "default"; private String group = "polaris";
/** /**
* Base paths to be scanned. Split by ",". * Base paths to be scanned. Split by ",".
*/ */

@ -83,6 +83,7 @@ public class PolarisSwaggerAutoConfiguration {
} }
@Bean @Bean
@ConditionalOnMissingBean
public OpenAPI polarisOpenAPI() { public OpenAPI polarisOpenAPI() {
return new OpenAPI() return new OpenAPI()
.info(new Info() .info(new Info()

@ -39,7 +39,7 @@ public class TsfContractProperties implements ExtendedContractProperties {
@Value("${tsf.swagger.enabled:true}") @Value("${tsf.swagger.enabled:true}")
private boolean enabled; private boolean enabled;
@Value("${tsf.swagger.group:default}") @Value("${tsf.swagger.group:polaris}")
private String groupName; private String groupName;
@Value("${tsf.swagger.basePath:/**}") @Value("${tsf.swagger.basePath:/**}")

@ -71,10 +71,10 @@
<properties> <properties>
<!-- Project revision --> <!-- Project revision -->
<revision>1.14.0-2023.0.0-RC2</revision> <revision>2.0.0.0-2023.0.0-RC2</revision>
<!-- Polaris SDK version --> <!-- Polaris SDK version -->
<polaris.version>1.15.8-SNAPSHOT</polaris.version> <polaris.version>2.0.0.0-SNAPSHOT</polaris.version>
<!-- Dependencies --> <!-- Dependencies -->
<guava.version>32.0.1-jre</guava.version> <guava.version>32.0.1-jre</guava.version>

Loading…
Cancel
Save