jiliangliang

spring could 心得
1.引入spinrg 的 meavn 的依赖 要先 <dependencies> ...
扫描右侧二维码阅读全文
19
2019/09

spring could 心得

1.引入spinrg 的 meavn 的依赖 要先

    <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>

2.要访问 要引入 http://192.168.199.217:8074/actuator/info

    <!-- 健康检查模块 -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
  1. 要正常启动框架 要添加
    <!--web模块-->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

4.要支持 lombok 使用 @Data 注解

    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
        <scope>provided</scope>
    </dependency>
Last modification:September 24th, 2019 at 01:44 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment