Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zgzx
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zgzx
Commits
4f9236b2
提交
4f9236b2
authored
9月 26, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
eb743084
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
10 行删除
+11
-10
FileClient.java
...src/main/java/com/zrqx/resource/bg/client/FileClient.java
+4
-4
FileClientHystric.java
...n/java/com/zrqx/resource/bg/client/FileClientHystric.java
+2
-2
FgEbookController.java
.../zrqx/resource/fg/controller/ebook/FgEbookController.java
+4
-3
application.yml
com.zrqx.resource/src/main/resources/application.yml
+1
-1
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/client/FileClient.java
浏览文件 @
4f9236b2
package
com
.
zrqx
.
resource
.
bg
.
client
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
com.zrqx.core.model.sysuser.log.Log
;
import
com.zrqx.core.util.response.CallBack
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -15,8 +14,8 @@ public interface FileClient {
@ApiOperation
(
value
=
"获取文件地址"
)
@RequestMapping
(
value
=
"/file"
,
method
=
RequestMethod
.
GET
)
public
CallBack
<
String
>
downLoad
(
String
fileName
)
;
@RequestMapping
(
value
=
"/file
/getFilePath
"
,
method
=
RequestMethod
.
GET
)
public
CallBack
<
String
>
downLoad
(
@RequestParam
(
value
=
"fileName"
)
String
fileName
)
throws
Exception
;
}
\ No newline at end of file
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/client/FileClientHystric.java
浏览文件 @
4f9236b2
...
...
@@ -17,10 +17,10 @@ public class FileClientHystric implements FileClient{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
FileClientHystric
.
class
);
@Override
public
CallBack
<
String
>
downLoad
(
String
fileName
)
{
public
CallBack
<
String
>
downLoad
(
String
fileName
)
throws
Exception
{
// TODO Auto-generated method stub
logger
.
info
(
"保存操作日志失败"
);
return
null
;
return
CallBack
.
fail
()
;
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/controller/ebook/FgEbookController.java
浏览文件 @
4f9236b2
...
...
@@ -13,6 +13,7 @@ import javax.servlet.http.HttpServletResponse;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -102,9 +103,9 @@ public class FgEbookController {
vo
.
setListArticle
(
resourceRelationService
.
queryRelationList
(
list
));
return
CallBack
.
success
(
vo
);
}
@ResponseBody
@
Reque
stMapping
(
"viewerit.html"
)
public
void
viewerit
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
oid
)
throws
IO
Exception
{
/*@RequestMapping("viewerit.html")*/
@
Po
stMapping
(
"viewerit.html"
)
public
void
viewerit
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
oid
)
throws
Exception
{
response
.
addHeader
(
"Access-Control-Allow-Origin"
,
"*"
);
response
.
addHeader
(
"Access-Control-Allow-Methods"
,
"GET, POST, PUT, DELETE, OPTIONS"
);
response
.
addHeader
(
"Access-Control-Allow-Headers"
,
...
...
com.zrqx.resource/src/main/resources/application.yml
浏览文件 @
4f9236b2
...
...
@@ -17,7 +17,7 @@ hystrix:
thread
:
timeoutInMilliseconds
:
1440000
semaphore
:
maxConcurrentRequests
:
200
maxConcurrentRequests
:
200
00
logging
:
level
:
com.zrqx.resource.bg.mapper
:
DEBUG
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论