dubbo依赖环境:
JDK环境
Tomcat环境
zookeeper环境
Maven环境
整体布局:
parent :父级项目:创建maven项目,不选择模板
common:子模块, maven项目,存放实体类, 工具类 l 实体类需要 实现Serializable接口
provider:子模块,服务提供者,springboot项目,数据访问层,业务逻辑层
consumer:子模块,消费者,springboot项目,本项目下主要存放前端页面,控制器
这是页面整体布局
parent 中的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>cn.bdqn</groupId> <artifactId>onlineQA12</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <modules> <module>online_common</module> <module>online_provider</module> <module>online_consumer</module> </modules> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.16.RELEASE</version> <relativePath/> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>s