代码拉取完成,页面将自动刷新
SpringCloud配置中心支持的svn、git、jdbc方式来存储配置项,使用管理过程中不是很方面,所以本组件是基于JDBC存储方式的扩展,提供WebUI管理界面,便于统一管理、快速变更,为开发、部署提供便捷的服务;本项目基于Spring Cloud Greenwich本来构建基础配置服务中心,提供如下主要功能:
#spring datasource config
spring.datasource.url=jdbc:mysql://mysql-server:3306/config_db?useUnicode=true&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spirng cloud kafka.binder
spring.cloud.stream.kafka.binder.brokers=kafka-server:9092
spring.cloud.stream.kafka.binder.zk-nodes=kafka-server:2181
#eureka-server config
eureka-rs0.hostname=eureka-service0
eureka-rs1.hostname=eureka-service1
eureka-rs2.hostname=eureka-service2
eureka-rs0.port=8000
eureka-rs1.port=8001
eureka-rs2.port=8002
#以上使用到mysql、kafka、spring cloud eureka
<dependency>
<groupId>com.saturn</groupId>
<artifactId>satrun-config-spring-cloud-starter</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
@EnableDiscoveryClient
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。