当前位置: 首页 > news >正文

本地网站建设DW上海百度关键词推广

本地网站建设DW,上海百度关键词推广,搜索引擎有哪些?,wordpress 时区项目环境 jdk 1.8spring 2.7.xmaven 3.6 项目结构 模块功能 client – 对外service common – 共用工具切面等 main – 启动类 goods – 子模块具体实现 模块间依赖关系 client – 无依赖 common – 无依赖 main – client、common、goods goods – client、common 具体P…

项目环境

  1. jdk 1.8
  2. spring 2.7.x
  3. maven 3.6

项目结构

在这里插入图片描述

模块功能

client – 对外service
common – 共用工具切面等
main – 启动类
goods – 子模块具体实现

模块间依赖关系

client – 无依赖
common – 无依赖
main – client、common、goods
goods – client、common

具体POM配置

顶级pom

引入需要被使用的所有项目子模块,并统一制定版本号

    <groupId>org.ct</groupId><artifactId>gp-data-analysis</artifactId><packaging>pom</packaging><version>${gp-data.version}</version><modules><module>gp-data-client</module><module>gp-data-common</module><module>gp-futrue-goods</module><module>gp-data-main</module></modules><properties><maven.compiler.source>8</maven.compiler.source><maven.compiler.target>8</maven.compiler.target><gp-data.version>1.0.0</gp-data.version></properties><dependencyManagement><dependencies><dependency><groupId>org.ct</groupId><artifactId>gp-data-analysis</artifactId><version>${gp-data.version}</version></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-main</artifactId><version>${gp-data.version}</version></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-common</artifactId><version>${gp-data.version}</version></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-client</artifactId><version>${gp-data.version}</version></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-futrue</artifactId><version>${gp-data.version}</version></dependency></dependencies></dependencyManagement><build><!-- 引入maven打包工具 --><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.1</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><skip>true</skip></configuration></plugin></plugins></build>

client、common、goods类似

	<!-- 指定父pom版本 --><parent><artifactId>gp-data-analysis</artifactId><groupId>org.ct</groupId><version>${gp-data.version}</version></parent>

main 设置打包入口,扫描的xml配置项等
    main 中dependency中引入顺序需要注意,需要保证,未被依赖的在前,被依赖的子模块在后。因为此处的顺序决定了maven install的顺序

    <parent><artifactId>gp-data-analysis</artifactId><groupId>org.ct</groupId><version>${gp-data.version}</version></parent><dependencies><dependency><groupId>org.ct</groupId><artifactId>gp-data-common</artifactId></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-client</artifactId></dependency><dependency><groupId>org.ct</groupId><artifactId>gp-data-futrue</artifactId></dependency></dependencies><build><plugins><!--打包插件--><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.4.3</version><executions><execution><goals><!-- 整合打jar包 --><goal>repackage</goal></goals></execution></executions><configuration><!--支持静态文件热部署--><addResources>true</addResources><!-- 指定该Main Class为全局的唯一入口 --><mainClass>org.ct.gp.GpDataBootApplication</mainClass></configuration></plugin></plugins><!--打包规则,打包时将resources文件夹打包进去--><resources><resource><directory>src/main/resources</directory><filtering>false</filtering></resource><!--保证mapper文件夹中的.xml文件可以被编译--><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes><filtering>false</filtering></resource></resources></build>

使用maven打包root目录
在这里插入图片描述
生成的main jar,及包含了所有模块
在这里插入图片描述

http://www.ds6.com.cn/news/34921.html

相关文章:

  • 自己做网站建设今日国内新闻头条大事
  • 安徽免费网站制作连云港seo优化公司
  • 十大互联网装修平台揭阳新站seo方案
  • 布吉做棋牌网站建设有哪些公司广西seo快速排名
  • 微信企业官方网站怎么做临沂seo公司
  • 福田网站建设运营费用哈尔滨百度推广公司
  • 京东网站建设的经费预算山西seo谷歌关键词优化工具
  • 网站制作 上海网络热线怎么知道网站有没有被收录
  • 做彩票网站用什么服务器合肥网站推广
  • wordpress实体图谷歌seo招聘
  • 友点cms莆田seo推广公司
  • 武汉哪些网站建设淘宝推广方法有哪些
  • 鹤山做网站软文大全
  • 专业网站建设公司哪里济南兴田德润什么活动如何做推广宣传
  • wordpress网站百度搜索吗品牌推广是做什么的
  • 公司做网站让我们销售济南竞价托管公司
  • 新手初做网站1688网站
  • 一个网站服务器多少钱新人做外贸怎么找国外客户
  • 免费做产品宣传的网站seo工具软件
  • 去年做啥网站能致富沈阳关键字优化公司
  • 网上接工程活做的网站网站推广的方法有哪些
  • 定制网站要多少钱网站建设的六个步骤
  • 电视台网站建设网络推广公司网站
  • 做网站广告收入百度最新秒收录方法2021
  • 织梦禁止网站右击百度做广告多少钱
  • 广州专业网站制作公司石家庄热搜
  • 绍兴做网站选哪家seo网站管理招聘
  • 关于做一动物网站的界面个百度大数据分析
  • 专业做制作网站株洲seo优化首选
  • 自己做网站制作教程建站seo推广