下一篇文章测试此次环境搭建:idea 开发dubbo 分布式
公共pom:父工程是简单Maven工程,需要将打包方式变成pom,让子工程继承
com.realfake
realfake
pom
1.0-SNAPSHOT
consumer
provider
service
UTF-8
1.7
1.7
1.2.17
4.3.9.RELEASE
junit
junit
4.11
test
com.alibaba
dubbo
2.5.9
org.springframework
spring
com.github.sgroschupf
zkclient
0.1
org.apache.zookeeper
zookeeper
3.4.13
org.springframework
spring-aop
${spring.version}
org.springframework
spring-aspects
${spring.version}
org.springframework
spring-beans
${spring.version}
org.springframework
spring-context
${spring.version}
org.springframework
spring-context-support
${spring.version}
org.springframework
spring-expression
${spring.version}
org.springframework
spring-instrument
${spring.version}
org.springframework
spring-instrument-tomcat
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-jms
${spring.version}
org.springframework
spring-messaging
${spring.version}
org.springframework
spring-orm
${spring.version}
org.springframework
spring-oxm
${spring.version}
org.springframework
spring-test
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-webmvc-portlet
${spring.version}
org.springframework
spring-websocket
${spring.version}
commons-fileupload
commons-fileupload
1.3.1
commons-io
commons-io
2.2
taglibs
standard
1.1.2
javax
javaee-api
8.0
provided
javax
javaee-web-api
8.0
provided
net.sf.json-lib
json-lib
2.1
jdk15
javax.servlet
jstl
1.2
io.jsonwebtoken
jjwt
0.6.0
com.fasterxml.jackson.core
jackson-core
2.7.4
com.fasterxml.jackson.core
jackson-databind
2.7.4
com.fasterxml.jackson.core
jackson-annotations
2.7.4
com.alibaba
fastjson
1.2.47
service的pom:service是简单Maven工程,通过jar方式让提供者和消费者使用
jar
provider的pom:provider是简单Maven工程
3.2.2
com.realfake
service
1.0-SNAPSHOT
compile
c3p0
c3p0
0.9.1.2
mysql
mysql-connector-java
5.1.41
org.mybatis
mybatis
${mybatis.version}
org.mybatis
mybatis-spring
1.2.2
org.mybatis.generator
mybatis-generator-core
1.3.5
com.github.pagehelper
pagehelper
5.1.4
org.springframework.data
spring-data-redis
1.6.0.RELEASE
redis.clients
jedis
2.7.3
org.apache.httpcomponents
httpclient
4.5.5
com.alibaba
fastjson
1.2.47
com.aliyun.oss
aliyun-sdk-oss
3.1.0
javax.mail
javax.mail-api
1.6.1
consumer的pom:consumer是webapp的maven工程,打包方式是war
realfake
com.realfake
1.0-SNAPSHOT
4.0.0
consumer
war
consumer Maven Webapp
UTF-8
1.7
1.7
com.realfake
service
1.0-SNAPSHOT
compile
junit
junit
4.11
test
provider.xml
mybatis.xml
classpath:properties/jdbc.properties
jdbc.properties
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/
jdbc.user=root
jdbc.password=
consumer.xml
springmvc.xml
web.xml
Archetype realfake Web Application
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
classpath:consumer.xml
dispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:spring/springmvc.xml
dispatcherServlet
/
characterEncoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
characterEncoding
/*
org.springframework.web.util.Log4jConfigListener
log4jConfigLocation
classpath:properties/log4j.properties
log4j.properties
log4j.rootLogger=DEBUG,console,file
log4j.appender.console = org.apache.log4j.ConsoleAppender
log4j.appender.console.Target = System.out
log4j.appender.console.Threshold=DEBUG
log4j.appender.console.layout = org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=[%c]-%m%n
log4j.appender.file = org.apache.log4j.RollingFileAppender
log4j.appender.file.File=log/tibet.log
log4j.appender.file.MaxFileSize=10mb
log4j.appender.file.Threshold=ERROR
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%p][%d{yy-MM-dd}][%c]%m%n
log4j.logger.org.mybatis=DEBUG
log4j.logger.java.sql=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.ResultSet=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
下一篇测试环境搭建。。。项目配置根据自身项目修改