Spring Boot - injecter de la carte à partir du fichier de propriétés

propriété de fichier ressemble à ceci:

url1=path_to_binary1
url2=path_to_binary2

Selon cette j'ai essayé approche suivante:

@Component
@EnableConfigurationProperties
public class ApplicationProperties {
    private Map<String, String> pathMapper;

    //get and set
}

et dans un autre composant que j'autocâblés ApplicationProperties:

@Autowired
private ApplicationProperties properties;         
      //inside some method:
      properties.getPathMapper().get(appName);

produit NullPointerException.

Comment le corriger?

mise à jour

J'ai corriger selon user7757360 conseils:

@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix="app")
public class ApplicationProperties {

et les propriétés de fichier:

app.url1=path_to_binary1
app.url2=path_to_binary2

Ne fonctionne toujours pas

Mise à jour 2

@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix="app")
public class ApplicationProperties {
    private Map<String, String> app;

et à l'intérieur de application.properties:

app.url1=path_to_binary1
app.url2=path_to_binary2

Ne fonctionne toujours pas