1.创建父工程

创建Maven工程pingyougou-parent,选择packaging类型为pom ,在pom.xml文件中添加锁定版本信息dependencyManagement与pluginManagement,以后的模块都继承此父工程。

pom.xml文件内容:

  1. <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">
  2. <modelVersion>4.0.</modelVersion>
  3. <groupId>com.pingyougou</groupId>
  4. <artifactId>pingyougou</artifactId>
  5. <version>0.0.-SNAPSHOT</version>
  6. <packaging>pom</packaging>
  7.  
  8. <!-- 集中定义依赖版本号 -->
  9. <properties>
  10. <junit.version>4.12</junit.version>
  11. <!-- <spring.version>4.2..RELEASE</spring.version> -->
  12. <spring-boot.version>2.0..RELEASE</spring-boot.version>
  13. <pagehelper.version>4.0.</pagehelper.version>
  14. <servlet-api.version>2.5</servlet-api.version>
  15. <dubbo.version>2.6.</dubbo.version>
  16. <zookeeper.version>3.4.</zookeeper.version>
  17. <zkclient.version>0.1</zkclient.version>
  18. <mybatis.version>3.2.</mybatis.version>
  19. <mybatis.spring.version>1.2.</mybatis.spring.version>
  20. <mybatis.paginator.version>1.2.</mybatis.paginator.version>
  21. <mysql.version>5.1.</mysql.version>
  22. <druid.version>1.0.</druid.version>
  23. <commons-fileupload.version>1.3.</commons-fileupload.version>
  24. <freemarker.version>2.3.</freemarker.version>
  25. <activemq.version>5.11.</activemq.version>
  26. <security.version>3.2..RELEASE</security.version>
  27. <solrj.version>4.10.</solrj.version>
  28. <ik.version>2012_u6</ik.version>
  29. </properties>
  30.  
  31. <dependencies>
  32. <!-- dubbo相关 -->
  33. <dependency>
  34. <groupId>com.alibaba</groupId>
  35. <artifactId>dubbo</artifactId>
  36. <version>${dubbo.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.zookeeper</groupId>
  40. <artifactId>zookeeper</artifactId>
  41. <version>${zookeeper.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.github.sgroschupf</groupId>
  45. <artifactId>zkclient</artifactId>
  46. <version>${zkclient.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>junit</groupId>
  50. <artifactId>junit</artifactId>
  51. <version>4.9</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.alibaba</groupId>
  55. <artifactId>fastjson</artifactId>
  56. <version>1.2.</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>javassist</groupId>
  60. <artifactId>javassist</artifactId>
  61. <version>3.11..GA</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>commons-codec</groupId>
  65. <artifactId>commons-codec</artifactId>
  66. <version>1.10</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>javax.servlet</groupId>
  70. <artifactId>servlet-api</artifactId>
  71. <version>2.5</version>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.github.pagehelper</groupId>
  76. <artifactId>pagehelper</artifactId>
  77. <version>${pagehelper.version}</version>
  78. </dependency>
  79. <!-- Mybatis -->
  80. <dependency>
  81. <groupId>org.mybatis</groupId>
  82. <artifactId>mybatis</artifactId>
  83. <version>${mybatis.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.mybatis</groupId>
  87. <artifactId>mybatis-spring</artifactId>
  88. <version>${mybatis.spring.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.github.miemiedev</groupId>
  92. <artifactId>mybatis-paginator</artifactId>
  93. <version>${mybatis.paginator.version}</version>
  94. </dependency>
  95. <!-- MySql -->
  96. <dependency>
  97. <groupId>mysql</groupId>
  98. <artifactId>mysql-connector-java</artifactId>
  99. <version>${mysql.version}</version>
  100. </dependency>
  101. <!-- 连接池 -->
  102. <dependency>
  103. <groupId>com.alibaba</groupId>
  104. <artifactId>druid</artifactId>
  105. <version>${druid.version}</version>
  106. </dependency>
  107. <!-- <dependency>
  108. <groupId>org.csource.fastdfs</groupId>
  109. <artifactId>fastdfs</artifactId>
  110. <version>1.2</version>
  111. </dependency> -->
  112. <!-- 文件上传组件 -->
  113. <dependency>
  114. <groupId>commons-fileupload</groupId>
  115. <artifactId>commons-fileupload</artifactId>
  116. <version>${commons-fileupload.version}</version>
  117. </dependency>
  118. <!-- 缓存 -->
  119. <!-- <dependency>
  120. <groupId>redis.clients</groupId>
  121. <artifactId>jedis</artifactId>
  122. <version>2.8.</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.springframework.data</groupId>
  126. <artifactId>spring-data-redis</artifactId>
  127. <version>1.7..RELEASE</version>
  128. </dependency> -->
  129. <dependency>
  130. <groupId>org.freemarker</groupId>
  131. <artifactId>freemarker</artifactId>
  132. <version>${freemarker.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.activemq</groupId>
  136. <artifactId>activemq-all</artifactId>
  137. <version>${activemq.version}</version>
  138. </dependency>
  139. <!-- 身份验证 -->
  140. <dependency>
  141. <groupId>org.springframework.security</groupId>
  142. <artifactId>spring-security-web</artifactId>
  143. <version>4.1..RELEASE</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.springframework.security</groupId>
  147. <artifactId>spring-security-config</artifactId>
  148. <version>4.1..RELEASE</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.github.penggle</groupId>
  152. <artifactId>kaptcha</artifactId>
  153. <version>2.3.</version>
  154. <exclusions>
  155. <exclusion>
  156. <groupId>javax.servlet</groupId>
  157. <artifactId>javax.servlet-api</artifactId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.springframework.security</groupId>
  163. <artifactId>spring-security-cas</artifactId>
  164. <version>4.1..RELEASE</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.jasig.cas.client</groupId>
  168. <artifactId>cas-client-core</artifactId>
  169. <version>3.3.</version>
  170. <!-- 排除log4j包冲突 -->
  171. <exclusions>
  172. <exclusion>
  173. <groupId>org.slf4j</groupId>
  174. <artifactId>log4j-over-slf4j</artifactId>
  175. </exclusion>
  176. </exclusions>
  177. </dependency>
  178. <!-- solr客户端 -->
  179. <dependency>
  180. <groupId>org.apache.solr</groupId>
  181. <artifactId>solr-solrj</artifactId>
  182. <version>${solrj.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.janeluo</groupId>
  186. <artifactId>ikanalyzer</artifactId>
  187. <version>${ik.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.httpcomponents</groupId>
  191. <artifactId>httpcore</artifactId>
  192. <version>4.4.</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.apache.httpcomponents</groupId>
  196. <artifactId>httpclient</artifactId>
  197. <version>4.5.</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>dom4j</groupId>
  201. <artifactId>dom4j</artifactId>
  202. <version>1.6.</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>xml-apis</groupId>
  206. <artifactId>xml-apis</artifactId>
  207. <version>1.4.</version>
  208. </dependency>
  209. </dependencies>
  210.  
  211. <modules>
  212. <module>pingyougou-pojo</module>
  213. </modules>
  214. </project>

2.创建通用实体类模块

创建通用实体类模块-pinyougou-pojo,在pingyougou-parent项目上右键选择 maven -> New Maven Module Project:

SOA架构商城二 框架搭建的更多相关文章

  1. SOA架构商城一

    SOA架构: SOA是Service-Oriented Architecture的首字母简称,它是一种支持面向服务的架构样式.从服务.基于服务开发和服务的结果来看,面向服务是一种思考方式.其实SOA架 ...

  2. WebX框架学习笔记之二----框架搭建及请求的发起和处理

    框架搭建 执行环境:windows.maven 执行步骤: 1.新建一个目录,例如:D:\workspace.注意在盘符目录下是无法执行成功的. 2.执行如下命令: mvn archetype:gen ...

  3. JAVAEE——宜立方商城01:电商行业的背景、商城系统架构、后台工程搭建、SSM框架整合

    1. 学习计划 第一天: 1.电商行业的背景. 2.宜立方商城的系统架构 a) 功能介绍 b) 架构讲解 3.工程搭建-后台工程 a) 使用maven搭建工程 b) 使用maven的tomcat插件启 ...

  4. JAVAEE——宜立方商城02:服务中间件dubbo、工程改造为基于soa架构、商品列表实现

    1. 学习计划 第二天:商品列表功能实现 1.服务中间件dubbo 2.工程改造为基于soa架构 3.商品列表查询功能实现. 2. 将工程改造为SOA架构 2.1. 分析 由于宜立方商城是基于soa的 ...

  5. 搭建一个BS 的简单SOA 架构(直接通过jquery 调用后台的 wcf 服务的架构)(第一天)

    亲们!还在用传统的三层架构吗?你还在对SOA架构 不了解吗? 那就赶快来学习下一个 比较简单的SOA的架构吧!我会手把手的 教会你们怎么搭建这个 简单的SOA的架构. 其中用的技术点保证  WCF,a ...

  6. 学习MVC之租房网站(二)-框架搭建及准备工作

    在上一篇<学习MVC之租房网站(一)-项目概况>中,确定了UI+Service的“双层”架构,并据此建立了项目 接下来要编写Common类库.配置AdminWeb和FrontWeb 一.编 ...

  7. [Visual Studio] SOA服务框架搭建

    1.服务框架搭建 2.服务模板创建 3.Nuget引用 4.客户端调用 任务点: 1.分析SOA 2.修改SOA架构名称以及关键字 3.使用Nuget添加引用 4.选择服务模板进行创建 5.尝试调用 ...

  8. .Net Core3.0 WebApi 项目框架搭建 二:API 文档神器 Swagger

    .Net Core3.0 WebApi 项目框架搭建:目录 为什么使用Swagger 随着互联网技术的发展,现在的网站架构基本都由原来的后端渲染,变成了:前端渲染.后端分离的形态,而且前端技术和后端技 ...

  9. 基于SOA分布式架构的dubbo框架基础学习篇

    以需求用例为基,抽象接口,Case&Coding两条线并行,服务(M)&消费(VC)分离,单元.接口.功能.集成四层质量管理,自动化集成.测试.交付全程支持. 3个大阶段(需求分析阶段 ...

随机推荐

  1. vue select下拉框绑定默认值

    vue select下拉框绑定默认值: 首先option要加value值,以便v-model可以获取到对应选择的值 一.当没有绑定v-model,直接给对应的option加selected属性 二.当 ...

  2. HTTP 请求未经客户端身份验证方案“Anonymous”授权。

    今天调取WebService的时候报: HTTP 请求未经客户端身份验证方案“Anonymous”授权. 解决办法: 配置文件里改: <basicHttpBinding> <bind ...

  3. dede栏目添加自定义字段方法

    1.首先要进mysql 数据库里添加字段,命名好!比如我下面添加了一个栏目备注字段,当然你字段可以自己新建,找到表dede_arctype(这个是栏目模型的数据库表,这里面我添加的是栏目备注字段cla ...

  4. python中如何将字符串连接在一起,多倍的字符串如何输出

    说明: 在python中,如果有多个字符串,想要连接在一起,或者说想要拼接在一起该如何操作,在此记录下. 操作过程: 1.通过 + 这个加号操作符,将字符串拼接在一起 >>> &qu ...

  5. MongoDB文档的增删改操作

    上一篇文章中介绍了MongoDB的一些基本知识,同时看到了怎么启动一个MongoDB服务,并且通过MongoDB自带的shell工具连接到了服务器. 这一次,就通过MongoDB shell介绍一下对 ...

  6. ASP.NET MVC 4 (二)控制器

    MVC中控制器负责处理请求,由它操作数据模型,最后返回视图给用户. IController接口 所有的控制器类以Controller结尾,必须实现System.Web.Mvc.IController接 ...

  7. vmware centos7系统虚拟机复制到其他电脑后不能联网问题解决

    虚拟机复制到别的电脑后,无法联网 使用ifconfig命令,没有显示出IP4的网址信息(显示ens33文件配置信息) 在网上查看相关资料,大部分说是mac地址不一致导致 如果配置了mac地址,那么在/ ...

  8. MySQL 安装与配置

    Linux 安装 MySQL Windows 安装 MySQL 如何连接 MySQL 如何修改 MySQL 密码 如何重置 MySQL 密码

  9. C++ template —— 深入模板基础(二)

    上一篇C++ template —— 模板基础(一)讲解了有关C++模板的大多数概念,日常C++程序设计中所遇到的很多问题,都可以从这部分教程得到解答.本篇中我们深入语言特性.------------ ...

  10. javaBean的理解总结

    javaBean简单理解:javaBean在MVC设计模型中是model,又称模型层,在一般的程序中,我们称它为数据层,就是用来设置数据的属性和一些行为,然后我会提供获取属性和设置属性的get/set ...