com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
* All rights reserved.
* Official Web Site: http://www.xiaominfo.com.
* Developer Web Site: http://open.xiaominfo.com.
*/
package com.github.xiaoymin.knife4j.spring.annotations;
import com.github.xiaoymin.knife4j.spring.configuration.Knife4jAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
/***
* Enable Knife4j enhanced annotation and use @EnableSwagger2 annotation together.
*
* inlude:
*
* - Interface sorting
* - Interface document download (word)
*
* @author xiaoymin
* @since 2.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Import({Knife4jAutoConfiguration.class})
@ConditionalOnWebApplication
public @interface EnableKnife4j {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy