"Could not open ServletContext resource" in test context
It seems that the requested properties can't be found. I would recommend doing this:
If the requested properties file is within your classpath you can fix above with just writing the next line:
@PropertySource("classpath:config/myConfig.properties")