springboot整合dubbo(2)-服务化最佳实践

时间:2021-06-28 20:31:31   收藏:0   阅读:0

分包:公共的模型、接口、异常都放在此处(springboot-interface-api)

将springboot-meeting-service、springboot-user-service系统pojo和service提取到springboot-interface-api

1.分包——新建普通maven项目

技术图片

 

 

技术图片

 

 

技术图片

 

 

springboot-interface-api(pom.xml)

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

  <groupId>com.xt</groupId>
  <artifactId>springboot-interface-api</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <name>springboot-interface-api</name>
  <!-- FIXME change it to the project‘s website -->
  <url>http://www.example.com</url>

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

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.20</version>
    </dependency>

  </dependencies>

</project>

  

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!