Skip to content

Commit

Permalink
fix:fix app starting failed when user using custom OpenAPI bean. (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyuwei01 authored Jul 26, 2024
1 parent 1d59307 commit bc845fa
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
- [feat:support consul config.](https://github.com/Tencent/spring-cloud-tencent/pull/1352)
- [feat:add trace report support.](https://github.com/Tencent/spring-cloud-tencent/pull/1353)
- [fix: fix lossless test case unstable issues.](https://github.com/Tencent/spring-cloud-tencent/pull/1355)
- [feat:support consul service update task.](https://github.com/Tencent/spring-cloud-tencent/pull/1357)
- [feat:support consul service update task.](https://github.com/Tencent/spring-cloud-tencent/pull/1357)
- [fix:fix app starting failed when user using custom OpenAPI bean.](https://github.com/Tencent/spring-cloud-tencent/pull/1358)
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<properties>
<!-- Project revision -->
<revision>1.14.0-2021.0.9-SNAPSHOT</revision>
<revision>2.0.0-2021.0.9-SNAPSHOT</revision>

<!-- Spring Framework -->
<spring.framework.version>5.3.31</spring.framework.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class PolarisContractProperties implements ContractProperties {
/**
* Group to create swagger docket.
*/
private String group = "default";
private String group = "polaris";
/**
* Base paths to be scanned. Split by ",".
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public GroupedOpenApi polarisGroupedOpenApi(PolarisContractProperties polarisCon
}

@Bean
@ConditionalOnMissingBean
public OpenAPI polarisOpenAPI() {
return new OpenAPI()
.info(new Info()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class TsfContractProperties implements ExtendedContractProperties {
@Value("${tsf.swagger.enabled:true}")
private boolean enabled;

@Value("${tsf.swagger.group:default}")
@Value("${tsf.swagger.group:polaris}")
private String groupName;

@Value("${tsf.swagger.basePath:/**}")
Expand Down
4 changes: 2 additions & 2 deletions spring-cloud-tencent-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@

<properties>
<!-- Project revision -->
<revision>1.14.0-2021.0.9-SNAPSHOT</revision>
<revision>2.0.0-2021.0.9-SNAPSHOT</revision>

<!-- Polaris SDK version -->
<polaris.version>1.15.8-SNAPSHOT</polaris.version>
<polaris.version>2.0.0.0-SNAPSHOT</polaris.version>

<!-- Dependencies -->
<guava.version>32.0.1-jre</guava.version>
Expand Down

0 comments on commit bc845fa

Please sign in to comment.