首页>代码>springcloud微服务架构项目搭建实例,基于maven多模块搭建>/dist_app_demo/configdemo/src/main/java/com/cuihui/config/configdemo/ConfigdemoApplication.java
package com.cuihui.config.configdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableConfigServer //启动配置服务器
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@EnableDiscoveryClient //开启发现服务功能
public class ConfigdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConfigdemoApplication.class, args);
    }

}
最近下载更多
笛卡尔积  LV6 2023年3月25日
冰123456  LV5 2022年12月3日
shownnJun  LV11 2022年10月27日
qianyunjie  LV8 2022年5月30日
落魄王公  LV10 2022年5月23日
mylzdy  LV12 2022年3月8日
wangshihui  LV8 2022年1月6日
as501226107  LV12 2022年1月2日
tangqiankun  LV1 2021年10月13日
Justice_Eternal  LV14 2021年7月26日
最近浏览更多
malagou  LV1 1月22日
落后就要挨打  LV26 2023年10月19日
微信网友_6115804675756032  LV7 2023年5月3日
笛卡尔积  LV6 2023年3月25日
阳光12345  LV3 2023年1月11日
秦sir3067683450  LV10 2022年12月31日
  LV6 2022年12月5日
123456asdczx  LV1 2022年12月4日
heqian  LV16 2022年12月2日
冰123456  LV5 2022年12月1日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友