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

晓风彩票网站建设源代码授权今日国内新闻

晓风彩票网站建设源代码授权,今日国内新闻,北京国家建设部网站首页,在服务器做网站项目环境 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/68142.html

相关文章:

  • 怎么在中国做网站赌博seosem是什么职位
  • 泸州市建设厅官方网站app推广怎么做
  • 住房与建设管理局淘宝怎么优化关键词排名
  • 国税网站建设现状整合营销传播的定义
  • 网页设计与网站建设第05国际重大新闻
  • php建站软件哪个好怎样建立一个网站
  • 做网站客户尾款老不给怎么办东莞seo培训
  • 校园网站建设教程比较好的网络优化公司
  • 渝北区两江新区seo网站推广软件
  • 门户网站等保二级建设方案seo教程seo入门讲解
  • 有个专门做简历的网站叫seo领导屋
  • 国内外贸网站建设公司百度网页版网址
  • aide web长春seo公司哪家好
  • h5网站全球搜官网
  • 莲都区建设局门户网站互联网平台推广
  • wordpress 媒体库空白上海排名优化seo
  • 天猫店的网站怎么做的sem是什么显微镜
  • 医院网站建设方案计划书google play应用商店
  • 电子商务网站的建设报告市场营销推广策划方案
  • 杭州高端网站建设搜索引擎营销的案例
  • wordpress注册登录问题网站seo快速排名优化的软件
  • 怎么做网站首页关键词深圳百度推广竞价托管
  • 网站后台的关键词福州关键词排名软件
  • 网站建设与设计实验报告市场调研报告范文模板
  • 网站网页能自己做吗网站排名seo教程
  • app开发定制外包22宁阳网站seo推广
  • 网站读取错误时怎样做网络营销策略优化
  • 哪个网站教做饭做的好交换友情链接的意义是什么
  • 网站申请免费培训心得模板
  • 微信网站建设热线免费公司网站建站