Keycloak Policy Enforcement with Springboot App

I am implementing Keycloak scope based permission authentication in Spring-boot application. I am using Keycloak.json file to initialize Keycloak adapter and now I applied policy in Keycloak.json file and while testing API I am getting error : failed to obtain policy enforcer and
my Keycloak.json file :

{
“realm”: “XYZ”,
“auth-server-url”: “”,
“ssl-required”: “none”,
“resource”: “dashboard”,
“verify-token-audience”: true,
“credentials”: {
“secret”: “”
},
“confidential-port”: 0,
“policy-enforcer”: {
“user-managed-access” : {},
“enforcement-mode” : “ENFORCING”,
“paths”: [
{
“name” : “Resource”,
“path” : “/*”,
“methods” : [
{
“method”: “POST”,
“scopes” : [“post”]
},
{
“method”: “PUT”,
“scopes” : [“put”]
}
]
}
]
}
}