Commit bef9b632 authored by 张永's avatar 张永

1

parent 96285e24
......@@ -8,7 +8,6 @@
<properties>
<start-class>com.egolm.shop.ShopApplication</start-class>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp>${maven.build.timestamp}</maven.build.timestamp>
......
......@@ -24,23 +24,6 @@ public class SwaggerConfig {
@Value("${maven.build.timestamp}")
private String mavenBuildTime;
/* @Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("IDC在线接口服务")
.termsOfServiceUrl("NO terms of service")
.version("1.0")
.build();
}*/
@Bean
public Docket ProductApi() {
......@@ -55,9 +38,9 @@ public class SwaggerConfig {
}
private ApiInfo productApiInfo() {
String releaseTime = "";//DateUtil.formatTimeEight(mavenBuildTime.replace("T"," ").replace("Z", ""));
String releaseTime = DateUtil.formatTimeEight(mavenBuildTime.replace("T"," ").replace("Z", ""));
return new ApiInfoBuilder()
.title("商品在线接口服务-------"+contextPath+"---发布时间:-"+releaseTime)
.title("B2B商品在线接口服务-------"+contextPath+"---发布时间:-"+releaseTime)
.termsOfServiceUrl("NO terms of service")
.version("1.0")
.build();
......
spring.profiles.active=dev
spring.messages.basename=messages
###版本号
maven.build.timestamp=@maven.build.timestamp@
\ No newline at end of file
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