Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
semi-server
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
semi-server
Commits
7d98941d
提交
7d98941d
authored
10月 26, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
575f2405
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
0 行删除
+9
-0
Api.sql
integrate-system/db/Api.sql
+0
-0
CommonHttpController.java
...main/java/com/system/controller/CommonHttpController.java
+8
-0
ResourceServerConfig.java
...in/java/com/system/oauth/config/ResourceServerConfig.java
+1
-0
没有找到文件。
integrate-system/db/Api.sql
浏览文件 @
7d98941d
差异被折叠。
点击展开。
integrate-system/src/main/java/com/system/controller/CommonHttpController.java
浏览文件 @
7d98941d
...
@@ -2,9 +2,15 @@ package com.system.controller;
...
@@ -2,9 +2,15 @@ package com.system.controller;
import
com.system.transfer.platform.PlatformDockingShoppingMallCommodityInVo
;
import
com.system.transfer.platform.PlatformDockingShoppingMallCommodityInVo
;
import
com.system.transfer.response.RestResponse
;
import
com.system.transfer.response.RestResponse
;
import
com.system.utils.HttpUtil
;
import
com.system.utils.JsonUtil
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
/**
* @author Inori
* @author Inori
*/
*/
...
@@ -22,6 +28,8 @@ public class CommonHttpController {
...
@@ -22,6 +28,8 @@ public class CommonHttpController {
@PostMapping
(
"/docking/shopping/mall/commodity"
)
@PostMapping
(
"/docking/shopping/mall/commodity"
)
public
RestResponse
dockingShoppingMallCommodity
(
@RequestBody
PlatformDockingShoppingMallCommodityInVo
inVo
)
{
public
RestResponse
dockingShoppingMallCommodity
(
@RequestBody
PlatformDockingShoppingMallCommodityInVo
inVo
)
{
System
.
out
.
println
(
inVo
);
System
.
out
.
println
(
inVo
);
ResponseEntity
<
String
>
responseEntity
=
HttpUtil
.
httpPost
(
"http://192.168.0.9:8089/api/dataSyn/getSyn"
,
JsonUtil
.
toString
(
Stream
.
of
(
12
).
collect
(
Collectors
.
toList
())));
System
.
out
.
println
(
responseEntity
.
getBody
());
return
RestResponse
.
success
();
return
RestResponse
.
success
();
}
}
...
...
integrate-system/src/main/java/com/system/oauth/config/ResourceServerConfig.java
浏览文件 @
7d98941d
...
@@ -47,6 +47,7 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
...
@@ -47,6 +47,7 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
.
antMatchers
(
"/webSocketApi/**"
).
permitAll
()
.
antMatchers
(
"/webSocketApi/**"
).
permitAll
()
.
antMatchers
(
"/websocket/**"
).
permitAll
()
.
antMatchers
(
"/websocket/**"
).
permitAll
()
.
antMatchers
(
"/api/docking/distribution/**"
).
permitAll
()
.
antMatchers
(
"/api/docking/distribution/**"
).
permitAll
()
.
antMatchers
(
"/api/docking/shopping/mall/**"
).
permitAll
()
.
anyRequest
().
authenticated
()
.
anyRequest
().
authenticated
()
// .antMatchers("/**").access("#oauth2.hasScope('ROLE_ADMIN')")
// .antMatchers("/**").access("#oauth2.hasScope('ROLE_ADMIN')")
.
and
().
csrf
().
disable
()
.
and
().
csrf
().
disable
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论