import org.springframework.beans.factory.annotation.Value;
...
@Value("${client.contextPaths:com.myapp.defaultmodel}")
protected String[] contextPaths;
Comma separated values in .yml file application.yml
client:
contextPaths: com.myapp.model, com.myapp.model2