coi-gov-pl / java-cascades

[WIP] Cascades - Provides a easy way to manage remote databases for development and test purposes
3 stars 2 forks source link

Don't allow to configure more then one server with the same serverId #19

Open speedlog opened 6 years ago

speedlog commented 6 years ago

When application is starting it creates map for database servers configuration (as key used serverId). It should stop and return message with reason, when in configuration are two the same serverId.

cardil commented 6 years ago

This might come handy: https://www.logicbig.com/tutorials/spring-framework/spring-boot/configuration-properties-validation.html