基本组件Nginx、Gateway、Nacos、Sentinel、Ribbon、Feign、Seata、redis、RabbitMQ、MySQL、Docker、Vue 。
文章插图
大家好 , 我是哪吒 。
今天分享一篇一站式微服务架构 , 读哪吒编程 , 品技术人生 。
一、前期准备【一篇打通微服务架构,Nacos + Gateway + Redis + MySQL + Docker】本项目暂定项目名NZBCProject , SpringBoot + Vue构建 , 具体项目内容未定 。
基本组件Nginx、Gateway、Nacos、Sentinel、Ribbon、Feign、Seata、Redis、RabbitMQ、MySQL、docker、Vue 。
1、安装MySQL5.72、安装nacos
文章插图
我安装的是window版的nacos和MySQL , 安装nacos时需要注意 , 要讲配置文件中的集群版改为单机版 , 才能启动!
3、安装Redis
文章插图
二、创建父工程我觉得主要是pom文件
<?xml versinotallow="1.0" encoding="UTF-8"?><project xmlns="http://maven.Apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.guor</groupId><artifactId>NZBCProject</artifactId><version>1.0-SNAPSHOT</version><modules><module>01common</module><module>02gateway</module></modules><properties><system.version>1.0.0</system.version><system.ip>127.0.0.1</system.ip><system.sport>808</system.sport><system.mode>http</system.mode><JAVA.version>1.8</java.version><spring-cloud.version>Greenwich.SR1</spring-cloud.version><skipTests>true</skipTests><nacos.version>0.2.2.RELEASE</nacos.version></properties><packaging>pom</packaging><name>NZBCProject</name><description>This is parent project</description><!-- 本项目的父模块使用spring-boot框架 --><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.4.RELEASE</version></parent><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><scope>provided</scope></dependency><dependency><groupId>commons-lang</groupId><artifactId>commons-lang</artifactId><version>2.6</version></dependency><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.2.5</version></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId></dependency><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>1.1.23</version></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId><version>0.2.1.RELEASE</version></dependency></dependencies><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>${spring-cloud.version}</version><type>pom</type><scope>import</scope></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-alibaba-dependencies</artifactId><version>${nacos.version}</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement><build><resources><resource><directory>src/main/resources</directory><includes><include>**/*.*</include></includes></resource><resource><directory>src/main/resources</directory><includes><include>**/*.yml</include></includes><filtering>true</filtering></resource><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes></resource></resources></build></project>
推荐阅读
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 毛坦厂的日与夜下 城市的日与夜
- excel中怎么输入微克单位 微克的符号怎么打
- 写一篇关于观察的作文300字 观察性作文
- 中考语文微写作议论类 中考微作文
- 微梦想网络 微梦想作文
- 写一篇关于传统节日的作文 假日里作文
- 外国聊天软件discord;国外有哪些类似微信的软件
- 式微是啥意思?式微的现代意思是什么?
- 微波炉蒸蛋
- 微信小程序开店流程?微信开店怎么弄?