• Spring cloud父项目的建立


    1.建立一个maven项目

    注意建立项目的时候。选择pom的包

    2.添加架包

    <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.java.springcloud</groupId>
      <artifactId>microservice</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>pom</packaging> 
      <!-- 指定编译的版本 -->
       <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>
            <druid.version>1.1.10</druid.version>
      </properties>
      	<!-- 子项目引用-->
      <dependencyManagement>
           <dependencies>
              <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Edgware.SR4</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>1.5.13.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- 连接池 -->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
                <version>${druid.version}</version>
            </dependency>
          </dependencies>
      </dependencyManagement>
      
      <modules>
      	<module>microservice-common</module>
      	<module>microservice-student-provider-1001</module>
      </modules>
    </project>
    

      

  • 相关阅读:
    二分法细节
    回溯总结
    质数统计查找 厄拉多塞筛
    串联字串比较
    Gitee FUCK U!
    大佬们都说简单而我暴力超时的dp题目
    UML建模工具Astah Pro 8破解教程2022最新最详细版
    r81259.007.01.tarcentos7驱动修改版
    综合案例注册页面
    html链接
  • 原文地址:https://www.cnblogs.com/nidegui/p/10953649.html
Copyright © 2020-2023  润新知