Commit 45d6634c by qiuweili123

调整组件中打包问题

parent 751981f0
......@@ -43,5 +43,13 @@
<optional>true</optional>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/static/</directory>
<targetPath>META-INF/resources/</targetPath>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
exception=com.secoo.mall.dubbo.filter.ResponseExceptionFilter
\ No newline at end of file
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.secoo.mall.common.config.MatrixSwaggerAutoConfiguration
\ No newline at end of file
......@@ -6,7 +6,6 @@ import com.secoo.mall.common.util.sys.SystemUtil;
import com.secoo.mall.web.annotation.ApiController;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
......@@ -30,7 +29,7 @@ public class MatrixWebAutoConfiguration {
private String appVersion;
@Bean
@ConditionalOnMissingBean(Docket.class)
//屏蔽,不考虑程序自定义的情况 @ConditionalOnMissingBean(Docket.class)
public Docket createWebApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo()).enable(SystemUtil.isBetaEnv())
......
......@@ -161,12 +161,6 @@
</dependencyManagement>
<build>
<resources>
<resource>
<directory>src/main/static/</directory>
<targetPath>META-INF/resources/</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment