java - spring boot multiple modules multiple property files @Propertysource not working -
i have 1 main project , 1 dependent project auditmodule. auditmodule has own datasource , , database properties in auditapplication.properties. main application has own application.properties.main project depends on audit project auditing stuff. when run main application , it's not detecting auditapplication.properties in audit module. below databaseconfiguration classes in main project , in audit project: main project: @configuration @enablejparepositories(basepackages = "com.staples.mpe.repository", entitymanagerfactoryref = "mpeentitymanager", transactionmanagerref = "mpetransactionmanager") @enabletransactionmanagement public class databaseconfiguration implements environmentaware {} audit project: @configuration @enablejparepositories(basepackages = "com.staples.em.magnus.audit.repository", entitymanagerfactoryref = "auditentitymanager") @en...