一篇打通微服务架构,Nacos + Gateway + Redis + MySQL + Docker

一、前期准备

本项目暂定项目名NZBCProject,SpringBoot + Vue构建,具体项目内容未定。

基本组件Nginx、Gateway、Nacos、Sentinel、Ribbon、Feign、Seata、Redis、RabbitMQ、MySQL、docker、Vue。

1、安装MySQL5.7
2、安装nacos
一篇打通微服务架构,Nacos + Gateway + Redis + MySQL + Docker_第1张图片
我安装的是window版的nacos和MySQL,安装nacos时需要注意,要讲配置文件中的集群版改为单机版,才能启动!
3、安装Redis
一篇打通微服务架构,Nacos + Gateway + Redis + MySQL + Docker_第2张图片

二、创建父工程

我觉得主要是pom文件



    4.0.0
 
    com.guor
    NZBCProject
    1.0-SNAPSHOT
    
        01common
        02gateway
    
 
    
        1.0.0
        127.0.0.1
        808
        http
        1.8
        Greenwich.SR1
        true
        0.2.2.RELEASE
    
 
    pom
    NZBCProject
    This is parent project
 
    
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.4.RELEASE
    
 
    
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
 
        
            org.projectlombok
            lombok
            provided
        
 
        
            commons-lang
            commons-lang
            2.6
        
 
        
            com.github.pagehelper
            pagehelper-spring-boot-starter
            1.2.5
        
        
            org.springframework.cloud
            spring-cloud-starter-alibaba-nacos-discovery
        
        
            com.alibaba
            druid
            1.1.23
        
        
            org.springframework.cloud
            spring-cloud-starter-alibaba-nacos-config
            0.2.1.RELEASE
        
    <

你可能感兴趣的:(一篇打通微服务架构,Nacos + Gateway + Redis + MySQL + Docker)