Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
2fa4831f
Commit
2fa4831f
authored
Jan 12, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新一些版本
parent
8a70c796
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
pom.xml
+12
-2
src/main/java/cn/stylefeng/guns/config/SwaggerConfig.java
+3
-2
src/main/resources/ehcache.xml
+1
-1
No files found.
pom.xml
View file @
2fa4831f
...
...
@@ -25,7 +25,8 @@
<java.version>
1.8
</java.version>
<shiro.version>
1.4.0
</shiro.version>
<kaptcha.version>
2.3.2
</kaptcha.version>
<ehcache.version>
3.3.1
</ehcache.version>
<ehcache3.version>
3.6.3
</ehcache3.version>
<ehcache2.version>
2.10.6
</ehcache2.version>
<beetl.version>
2.9.3
</beetl.version>
<swagger.version>
2.9.2
</swagger.version>
<ehcache.core.version>
2.6.11
</ehcache.core.version>
...
...
@@ -102,12 +103,21 @@
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
ehcache-core
</artifactId>
<groupId>
net.sf.ehcache
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
net.sf.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
<version>
${ehcache2.version}
</version>
</dependency>
<dependency>
<groupId>
org.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
<version>
${ehcache.version}
</version>
<version>
${ehcache
3
.version}
</version>
</dependency>
<!--验证码-->
...
...
src/main/java/cn/stylefeng/guns/config/SwaggerConfig.java
View file @
2fa4831f
...
...
@@ -23,6 +23,7 @@ import springfox.documentation.builders.ApiInfoBuilder;
import
springfox.documentation.builders.PathSelectors
;
import
springfox.documentation.builders.RequestHandlerSelectors
;
import
springfox.documentation.service.ApiInfo
;
import
springfox.documentation.service.Contact
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spring.web.plugins.Docket
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
...
...
@@ -44,7 +45,7 @@ public class SwaggerConfig {
.
apiInfo
(
apiInfo
())
.
select
()
.
apis
(
RequestHandlerSelectors
.
withMethodAnnotation
(
ApiOperation
.
class
))
//这里采用包含注解的方式来确定要显示的接口
//.apis(RequestHandlerSelectors.basePackage("cn.stylefeng.guns.modular.system.controller")) //这里采用包扫描的方式来确定要显示的接口
//.apis(RequestHandlerSelectors.basePackage("cn.stylefeng.guns.modular.system.controller"))
//这里采用包扫描的方式来确定要显示的接口
.
paths
(
PathSelectors
.
any
())
.
build
();
}
...
...
@@ -54,7 +55,7 @@ public class SwaggerConfig {
.
title
(
"Guns Doc"
)
.
description
(
"Guns Api文档"
)
.
termsOfServiceUrl
(
"https://gitee.com/stylefeng/guns"
)
.
contact
(
"stylefeng"
)
.
contact
(
new
Contact
(
"stylefeng"
,
"https://gitee.com/stylefeng/guns"
,
""
)
)
.
version
(
"2.0"
)
.
build
();
}
...
...
src/main/resources/ehcache.xml
View file @
2fa4831f
<?xml version="1.0" encoding="UTF-8"?>
<ehcache
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"ehcache.xsd"
xsi:noNamespaceSchemaLocation=
"
http://ehcache.org/
ehcache.xsd"
updateCheck=
"false"
monitoring=
"autodetect"
dynamicConfig=
"true"
>
...
...
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