This demonstrates the problem with Grails due to spring-projects/spring-boot#6180. We have a following bean:
It should correctly bind the values to field mappings
from the following YAML configurations as ['/words/googleOnly':['allowedOrigins': ['https://www.google.com']]]
but in actual it is bound as: ['/words/googleOnly':['allowedOrigins[0]': 'https://www.google.com']]
:
corsexample/grails-app/conf/application.yml
Lines 48 to 62 in 1b2570c
- Run the Grails application using command
./gradlew bootRun
. - The following
assertion
in Bootstrap.groovy is failing:
corsexample/grails-app/init/corsmapping/BootStrap.groovy
Lines 1 to 10 in 1b2570c