Commit bef9b632 authored by 张永's avatar 张永

1

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