-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another
Description
Affects: \5.2.2
we usually inject an array use comma like this:
key=A,B,C@Value("${key}")
String[] keys;but can't inject an array like below
origin=http://domainA.com,http://domainB.comonly key have one element, below SpEL can work fine, if key have more than 2 elements, it won't work
@CrossOrigin(value = "${origin}")Or
@CrossOrigin(value = "#{'${origin}'.split(',')}")Can provide any advice?
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another