Setting datasources with Spring Cloud
问题 I am looking for a SIMPLE example for setting a datasource (jdbc) from a configuration server running Spring Cloud. I've read through the Spring.io docs for Spring Cloud and find them VERY confusing. Does anyone know of a place to find a simple example? I've tried to run the stuff they have on Github, but they don't build. 回答1: Configuring a datasource is the same as in vanilla spring boot with the exception that the configuration will be loaded from a spring-cloud config server. So instead