Menu.xml activity based on applocation.properties

Hi,

Is it possible to manage menu.xml as per the profile set in application.properties.

Similar to spring boot properties spring.profiles.active = dev or any other way to achieve similar thing

Hi Adnan,

You could create multiple menu.xml files and select them in jmix.ui.menu-config property in different property files depending on profiles: application.properties, application-dev.properties, etc.

Studio will show the menu from file selected in application.properties or in the file having the spring.profiles.active property.

Regards,
Konstantin

1 Like