开发者社区> 问答> 正文

springcloud 分布式开发有几层?

springcloud 分布式开发到底有几层呢?

展开
收起
叫我饭啊啊 2021-09-29 10:33:58 759 0
1 条回答
写回答
取消 提交回答
  • package com.packtpub.ConfigApp; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.config.server.EnableConfigServer; @EnableDiscoveryClient @EnableConfigServer @SpringBootApplication public class ConfigAppApplication { public static void main(String[] args) { new SpringApplicationBuilder(ConfigAppApplication.class).web(true).run(args); } } application.properties 复制代码 spring.application.name=config-server server.port=7001 eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/ spring.profiles.active=native spring.cloud.config.server.native.searchLocations=file:D:/temp/

    2021-09-29 14:20:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
基于社区的分布式 风险感知模型 立即下载
如何利用Redisson分布式化传统Web项目 立即下载
搭建基于SpringCloud的微服务应用 立即下载