Super-diamond
Configuration management system to provide system parameters configuration management, such as database configuration information, configuration parameters can be pushed to the client in real time (based on Netty4), to facilitate the system to dynamically modify the operating parameters.
Multiple projects can be built, each of which is divided into three profiles (development, test, production) to control profile level permissions.
All parameters are configured by the development profile, and test and production profiles inherit the development profile configuration, or they can be overwritten. Test and production profile only provide modification functionality.
The client backs up the configuration information to the local file system and can use a local backup if the server is unavailable. The client can periodically re-connect the server to ensure that the client is highly available.
The client provides Configurationlistener, and when a property changes (add, update, clear), Configurationlistener can receive configurationevent.
Super-diamond-server Installation
Download Super-diamond code: Git clone https://github.com/melin/super-diamond.git
Enter Super-diamond directory, build super-diamond Parent project: mvn Install
Super-diamond-server Embedded jetty Run, build deployment package: mvn install assembly:single-pproduction, build super-diamond-server-${version}- bin.tar.gz file, unzip run bin/server.sh start command.
In the conf\meta-inf\scripts directory, MySQL and Oracle build table scripts are available, and the theory supports other databases in conf\meta-inf\res\ Modify the database configuration in the Config-production.properties file.
In the Conf_user table, add user admin, password 000000 encryption value is: 670B14728AD9902AECBA32E22FA4F6BD, MySQL script: INSERT into Conf_user (Id,user_code, User_name,password,create_time) VALUES (1, ' admin ', ' admin ', ' 670b14728ad9902aecba32e22fa4f6bd ', Current_timestamp () );
Commit
Access Super-diamond-server,jetty default port is 8090 and can be modified in: Conf/meta-inf/res/jetty.properties. Http://localhost:8090/superdiamond
Super-diamond Configuration Management System