mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-12 05:01:41 +08:00
chore: 优化部分依赖传递范围
This commit is contained in:
@@ -53,5 +53,11 @@
|
|||||||
<groupId>top.continew</groupId>
|
<groupId>top.continew</groupId>
|
||||||
<artifactId>continew-starter-file-excel</artifactId>
|
<artifactId>continew-starter-file-excel</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- API 文档模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>top.continew</groupId>
|
||||||
|
<artifactId>continew-starter-api-doc</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
@@ -54,6 +54,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>top.continew</groupId>
|
<groupId>top.continew</groupId>
|
||||||
<artifactId>continew-starter-api-doc</artifactId>
|
<artifactId>continew-starter-api-doc</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- JSON 模块 - Jackson -->
|
<!-- JSON 模块 - Jackson -->
|
||||||
|
@@ -28,6 +28,8 @@ import com.feiniaojin.gracefulresponse.defaults.DefaultResponseStatusFactoryImpl
|
|||||||
import jakarta.annotation.PostConstruct;
|
import jakarta.annotation.PostConstruct;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springdoc.core.parsers.ReturnTypeParser;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
@@ -219,6 +221,7 @@ public class GlobalResponseAutoConfiguration {
|
|||||||
* @return {@link ApiDocGlobalResponseHandler }
|
* @return {@link ApiDocGlobalResponseHandler }
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
|
@ConditionalOnClass(ReturnTypeParser.class)
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public ApiDocGlobalResponseHandler apiDocGlobalResponseHandler() {
|
public ApiDocGlobalResponseHandler apiDocGlobalResponseHandler() {
|
||||||
return new ApiDocGlobalResponseHandler(globalResponseProperties);
|
return new ApiDocGlobalResponseHandler(globalResponseProperties);
|
||||||
|
Reference in New Issue
Block a user