Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
bef9b632
Commit
bef9b632
authored
Aug 28, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
96285e24
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
24 deletions
+8
-24
pom.xml
pom.xml
+1
-2
SwaggerConfig.java
src/main/java/com/egolm/shop/config/SwaggerConfig.java
+3
-20
application.properties
src/main/resources/application.properties
+4
-2
No files found.
pom.xml
View file @
bef9b632
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
<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>
...
...
src/main/java/com/egolm/shop/config/SwaggerConfig.java
View file @
bef9b632
...
@@ -24,23 +24,6 @@ public class SwaggerConfig {
...
@@ -24,23 +24,6 @@ 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
()
{
...
@@ -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
();
...
...
src/main/resources/application.properties
View file @
bef9b632
spring.profiles.active
=
dev
spring.profiles.active
=
dev
spring.messages.basename
=
messages
spring.messages.basename
=
messages
###版本号
maven.build.timestamp
=
@maven.build.timestamp@
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment