Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To include a map<string,map<string,integer>> in application.properties, you can use the following syntax:

map.key1.key2=value1 map.key1.key3=value2 map.key4.key5=value3

Here, the "map" represents the name of the map, "key1" represents the first key of the inner map, "key2" and "key3" represent the second keys of the inner map, and "value1" and "value2" represent the corresponding values.

To use this map in your application, you can use the @Value annotation in your code, like this:

@Value("#{${map}}") private Map<string, map<string,="" integer="">> myMap;

This will inject the map into your code.