Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fangyeqing
/
xkl-interface
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhaoyue
8 years ago
Commit
03b06cf40142dbbf428a642e3649c1a712a05306
1 parent
856bd386
Upsoft pass testing, fix little bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
40 deletions
pom.xml
push.sh
src/main/java/com/xkl/config/SwaggerConfig.java
pom.xml
View file @
03b06cf
...
...
@@ -51,16 +51,6 @@
<artifactId>
swagger-springmvc
</artifactId>
<version>
1.0.0
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.4.0
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.4.0
</version>
</dependency>
<dependency>
<groupId>
oro
</groupId>
...
...
push.sh
View file @
03b06cf
git add --all src/
*
git add push.sh
git add pom.xml
git commit -m
"Upsoft pass testing"
git commit -m
"Upsoft pass testing
, fix little bug
"
git push origin zhaoyue-dev2
git status
\ No newline at end of file
...
...
src/main/java/com/xkl/config/SwaggerConfig.java
View file @
03b06cf
...
...
@@ -7,42 +7,17 @@ import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
springfox.documentation.builders.ApiInfoBuilder
;
import
springfox.documentation.builders.PathSelectors
;
import
springfox.documentation.builders.RequestHandlerSelectors
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
//import springfox.documentation.service.ApiInfo;
import
java.sql.Timestamp
;
//import springfox.documentation.service.ApiInfo;
/**
* swagger-ui的配置
*/
@Configuration
@EnableSwagger
public
class
SwaggerConfig
{
// @Bean
// public Docket createRestApi() {
// return new Docket(DocumentationType.SWAGGER_2)
// .apiInfo(apiInfo())
// .select()
// .apis(RequestHandlerSelectors.basePackage("com.xkl.controller"))
// .paths(PathSelectors.any())
// .build();
// }
//
// private ApiInfo apiInfo() {
// return new ApiInfoBuilder()
// .title("Spring Boot中使用Swagger2构建RESTful APIs")
// .description("更多Spring Boot相关文章请关注:http://blog.didispace.com/")
// .termsOfServiceUrl("http://blog.didispace.com/")
// .contact("程序猿DD").version("1.0")
// .build();
// }
//
//
//}
private
SpringSwaggerConfig
springSwaggerConfig
;
...
...
@@ -56,7 +31,7 @@ public class SwaggerConfig {
return
new
SwaggerSpringMvcPlugin
(
this
.
springSwaggerConfig
)
.
apiInfo
(
new
ApiInfo
(
"xkl RESTful Api"
,
null
,
null
,
null
,
null
,
null
)).
//将Timestamp类型全部转为Long类型
//将Timestamp类型全部转为Long类型
directModelSubstitute
(
Timestamp
.
class
,
Long
.
class
);
}
...
...
Please
register
or
login
to post a comment