没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
Spring cloud 实现广告系统.md
8/19/2019
1 / 115
[Spring cloud
一
步步
实
现
广
告
系统
]
什么
是
广
告
系统
主
要
包
含
广
告
主
投
放
广
告
的
《
广
告
投
放
系统
》
媒
体
方
(
广
告
展
示
媒
介
-<
地
铁
广
告
屏
幕
>
)
检
索
广
告
用
的
《
广
告
检
索系统
》
广
告
计
费
系统
(
按
次
,
曝
光
量
等等
)
报
表
系统
Etc.
使
用
技
能
栈
JDK1.8
MySQL 8+
Maven 3+
Spring cloud Greenwich.SR2
Eureka
Zuul / gateway
Feign
...
Spring boot 2.1.5
Kafka 2.2.0
MySQL Binlog
项
目
结
构
Spring cloud 实现广告系统.md
8/19/2019
2 / 115
项
目
架构
编
码
阶
段
父
项
目
管
理
首
先
,
我
们
在
创
建
投
放
系统
之
前
,
先
看
一下
我
们
的
工
程
结
构
:
Spring cloud 实现广告系统.md
8/19/2019
3 / 115
mscx-ad-sponsor
就
是
我
们
的
广
告
投
放
系统
。
如
上
结
构
,
我
们
需
要
首
先创
建
一个
Parent Project mscx-ad
来
编
写
父
项
目的
pom
,
来
管
理
我
们
的
统
一
依
赖
信
息
。
<?xml version="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>
<packaging>pom</packaging>
<modules>
<module>mscx-ad-discovery</module>
<module>mscx-ad-zuul</module>
<module>mscx-ad-gateway</module>
<module>mscx-ad-discovery-nacos</module>
<module>mscx-ad-common</module>
<module>mscx-ad-db</module>
<module>mscx-ad-sponsor</module>
<module>mscx-ad-search</module>
<module>mscx-ad-feign-sdk</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.sxzhongf</groupId>
<artifactId>mscx-ad</artifactId>
<version>1.0-SNAPSHOT</version>
<name>
分
布
式广
告
系统
</name>
<description>
基
于
Spring Cloud Alibaba
实
现
的
分
布
式广
告
系统
</description>
<properties>
Spring cloud 实现广告系统.md
8/19/2019
4 / 115
<java.version>1.8</java.version>
<spring-cloud.version>Greenwich.SR2</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--Spring cloud
监
控
端
点
管
理
依
赖
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<!--
定
义
Spring Cloud
主
版
本
-->
<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>
</dependencies>
</dependencyManagement>
<!--
定
义
远
程
maven
仓
库
-->
<repositories>
<!-- Spring
中
央
仓
库
-->
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- Ali
中
央
仓
库
-->
<repository>
<id>alibaba-milestones</id>
<name>ali Milestones</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
Spring cloud 实现广告系统.md
8/19/2019
5 / 115
</repositories>
<!--
项
目
编
译
插
件
-->
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
服
务
发
现
Eureka
Eureka Server (
提
供
服
务
的
注
册
和发
现
)
Eureka Client
Service provider (
服
务
提
供
方
,
将
自
身
注
册到
server
上,
从
而
让
Eureka Server
保
存
provider
的
元
数
据
,
让
其
他
的
服
务
消
费
者
可
以
找
到
当
前
服
务
)
Service Consumer(
服
务
消
费
方
,
从
Eureka Server
上
获
取
注
册
的
服
务列
表
,
从
而
消
费
服
务
)
创
建
project mscx-ad-discovery,
然
后
使
用
SpringBoot
项
目的
三
部
曲
(
加
依
赖
,
加
注
解
,
改
配
置
)
编
写
POM
,
重
点
关
注
依
赖
spring-cloud-starter-eureka-server
<?xml version="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">
<parent>
<artifactId>mscx-ad</artifactId>
<groupId>com.sxzhongf</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
剩余114页未读,继续阅读
俞林鑫
- 粉丝: 14
- 资源: 288
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0