Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-rest
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
xzxt-rest
Commits
23f90d50
Commit
23f90d50
authored
Nov 05, 2019
by
cc150520900118
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加服务端cros跨域
parent
ee19c45c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/main/java/com/cc/controller/RedisRsetController.java
+3
-4
No files found.
src/main/java/com/cc/controller/RedisRsetController.java
View file @
23f90d50
...
...
@@ -13,10 +13,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -33,6 +30,7 @@ import java.util.Set;
* @version 1.0
*/
@Controller
@CrossOrigin
(
origins
=
"*"
,
maxAge
=
3600
)
public
class
RedisRsetController
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
RedisRsetController
.
class
);
@Autowired
...
...
@@ -77,6 +75,7 @@ public class RedisRsetController {
* ssdw:省份 山西:14
* type::CODE_UNIT
*/
@RequestMapping
(
value
=
"/UpdateRedisRest"
,
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
@ResponseBody
public
XzxtRestResult
UpdateRedisRest
(
String
ssdw
,
String
type
)
{
...
...
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