我有来自json的这个字符串,但我不知道如何用引号
获取值[
"black-chest-close.png",
"diamond-chest-close.png",
"gold-chest-close.png",
"logo.png",
"logo1.png",
"ruby-chest-close.png",
"sapphire-chest-close.png"
]
答案 0 :(得分:0)
用方括号替换方括号,只是实例化一个String数组 - 不需要JSON
String arr[] = {"black-chest-close.png","diamond-chest-close.png","gold-chest-close.png",
"logo.png","logo1.png","ruby-chest-close.png","sapphire-chest-close.png"};
答案 1 :(得分:0)
看看这个tutorial你也可以在json之上解析
<security:http entry-point-ref="samlEntryPoint" use-expressions="false" auto-config="true" access-denied-page="/saml/web/auth/denied">
<security:intercept-url pattern="/saml/web/home" access="ROLE_MEMBER"/>
<security:intercept-url pattern="/saml/web/getUserDetails" access="ROLE_ADMIN"/>
<security:intercept-url pattern="/**" access="IS_AUTHENTICATED_FULLY"/>
<security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/>
<security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter"/>
</security:http>