随机代码

1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4    <modelVersion>4.0.0</modelVersion>
5    <parent>
6        <groupId>com.zrh</groupId>
7        <artifactId>springcloud</artifactId>
8        <version>1.0-SNAPSHOT</version>
9    </parent>
10
11    <artifactId>microservice-student-provider</artifactId>
12
13
14    <dependencies>
15        <dependency>
16            <groupId>com.zrh</groupId>
17            <artifactId>microservice-common</artifactId>
18        </dependency>
19        <dependency>
20            <groupId>org.springframework.boot</groupId>
21            <artifactId>spring-boot-starter-web</artifactId>
22        </dependency>
23        <dependency>
24            <groupId>org.springframework.boot</groupId>
25            <artifactId>spring-boot-starter-test</artifactId>
26            <scope>test</scope>
27        </dependency>
28        <dependency>
29            <groupId>org.springframework.boot</groupId>
30            <artifactId>spring-boot-starter-data-jpa</artifactId>
31        </dependency>
32        <dependency>
33            <groupId>mysql</groupId>
34            <artifactId>mysql-connector-java</artifactId>
35        </dependency>
36        <dependency>
37            <groupId>org.springframework.boot</groupId>
38            <artifactId>spring-boot-starter-tomcat</artifactId>
39        </dependency>
40        <dependency>
41            <groupId>com.alibaba</groupId>
42            <artifactId>druid-spring-boot-starter</artifactId>
43        </dependency>
44        <!--  修改后立即生效,热部署  -->
45        <dependency>
46            <groupId>org.springframework</groupId>
47            <artifactId>springloaded</artifactId>
48        </dependency>
49        <dependency>
50            <groupId>org.springframework.boot</groupId>
51            <artifactId>spring-boot-devtools</artifactId>
52        </dependency>
53        <dependency>
54            <groupId>com.zrh</groupId>
55            <artifactId>microservice-common</artifactId>
56            <version>1.0-SNAPSHOT</version>
57            <scope>compile</scope>
58        </dependency>
59        <!--添加注册中心Eureka相关配置-->
60        <dependency>
61            <groupId>org.springframework.cloud</groupId>
62            <artifactId>spring-cloud-starter-eureka</artifactId>
63        </dependency>
64        <dependency>
65            <groupId>org.springframework.cloud</groupId>
66            <artifactId>spring-cloud-starter-config</artifactId>
67        </dependency>
68        <!--&lt;!&ndash; actuator监控引入 &ndash;&gt;-->
69        <dependency>
70            <groupId>org.springframework.boot</groupId>
71            <artifactId>spring-boot-starter-actuator</artifactId>
72        </dependency>
73
74    </dependencies>
75    <build>
76        <plugins>
77            <plugin>
78                <groupId>org.springframework.boot</groupId>
79                <artifactId>spring-boot-maven-plugin</artifactId>
80            </plugin>
81        </plugins>
82    </build>
83
84</project>
参考地址:Ribbon负载均衡及Feign消费者调用服务

代码交流 2021