cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to read HYBRIS_CONFIG_DIR in code

0 Likes
296

Hi Experts,

Could you please let us know how can we read the HYBRIS_CONFIG_DIR in hybris java code.

Accepted Solutions (0)

Answers (1)

Answers (1)

a_e_dubey
Active Participant
0 Likes

Hi aparna.de

You can use simply using configuration service to get path of config dir like below snippet:


@Resource(name = "configurationService")
	private ConfigurationServiceconfigurationService;

String configdir=configurationService.getConfiguration().getString(HYBRIS_CONFIG_DIR)

I hope this will help you.