micro-service-sample, based on spring boot
- mybatis and a plug-in for paging, named pageHelper
- multi database configuartions, primary db, slave db and read-only db
- a custom annotation used for dynamicaly chosing db from multi dbs
- using druid from alibaba as the datasource
- basically some demo filters and intercepters, definited by annotations
- a RequestLocaleResolver for internationality
- logging based on slf4j and logback, with customising the log format
- redis connection config and sample in unit test
- mongodb connection config and sample in unit test, with mongodb deployed on Replica Set way
- etcd, zookeeper
- this sample does not contains the jms and mq module, for i think the guildline of spring-boot is detailed enough, http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-messaging
- requires mongodb envriment and redis, java 8, maven 3
- packaging: mvn package, this cmd will run all the unit test, if u donot want to run the unit test, just run mvn package -DskipTests, the in target/ dir, u will find a jar file, just move this jar to any host with java 8, run the application: java -jar xx.jar
- locally, u can also run the application by: mvn spring-boot:run