Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
manager
Commits
6c65e984
Commit
6c65e984
authored
6 years ago
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manaer 测试分支
parent
2971c585
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1197 additions
and
1341 deletions
+1197
-1341
.gitignore
.gitignore
+1
-1
workspace.xml
.idea/workspace.xml
+0
-0
manage.iml
manage.iml
+6
-3
manager.iml
manager.iml
+0
-163
pom.xml
pom.xml
+854
-836
LoginController.java
src/main/java/common/controller/LoginController.java
+3
-0
UserServiceImpl.java
src/main/java/common/service/impl/UserServiceImpl.java
+5
-0
TrackAccountFlowRestrictServiceImpl.java
...ack/service/impl/TrackAccountFlowRestrictServiceImpl.java
+2
-13
applicationContext.xml
src/main/resources/spring/applicationContext.xml
+326
-325
No files found.
.gitignore
View file @
6c65e984
...
...
@@ -4,7 +4,7 @@
/.classpath
/.project
/.externalToolBuilders
/
.idea/
.idea/
/node_modules/
/dist/
!/src/main/webapp/WEB-INF
...
...
This diff is collapsed.
Click to expand it.
.idea/workspace.xml
View file @
6c65e984
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
manage.iml
View file @
6c65e984
...
...
@@ -11,8 +11,11 @@
</webroots>
</configuration>
</facet>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration
/>
</facet>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
inherit-compiler-output=
"false"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
...
...
@@ -79,7 +82,7 @@
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:jconsole:1.8.0"
>
<CLASSES>
<root
url=
"jar://
E:/Java/jdk1.8.0_65
/lib/jconsole.jar!/"
/>
<root
url=
"jar://
D:/Program Files/Java/jdk1.8.0_181
/lib/jconsole.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
...
...
@@ -88,7 +91,7 @@
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:tools:1.8.0"
>
<CLASSES>
<root
url=
"jar://
E:/Java/jdk1.8.0_65
/lib/tools.jar!/"
/>
<root
url=
"jar://
D:/Program Files/Java/jdk1.8.0_181
/lib/tools.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
...
...
This diff is collapsed.
Click to expand it.
manager.iml
deleted
100644 → 0
View file @
2971c585
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"FacetManager"
>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<descriptors>
<deploymentDescriptor
name=
"web.xml"
url=
"file://$MODULE_DIR$/src/main/webapp/WEB-INF/web.xml"
/>
</descriptors>
<webroots>
<root
url=
"file://$MODULE_DIR$/lib"
relative=
"WEB-INF/lib"
/>
<root
url=
"file://$MODULE_DIR$/src/main/webapp"
relative=
"/"
/>
</webroots>
</configuration>
</facet>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
inherit-compiler-output=
"false"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: javax.servlet:javax.servlet-api:3.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-logging:commons-logging:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-beans:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-web:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-webmvc:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-expression:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-context-support:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-jpa:1.3.2.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-commons:1.5.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-orm:3.1.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jdbc:3.1.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.aspectj:aspectjrt:1.7.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aspects:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.aspectj:aspectjweaver:1.8.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-aop:4.3.4.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-redis:1.7.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.data:spring-data-keyvalue:1.1.1.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-tx:4.2.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-oxm:4.2.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.sf.ehcache:ehcache:2.9.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.googlecode.ehcache-spring-annotations:ehcache-spring-annotations:1.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: aopalliance:aopalliance:1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.sf.ehcache:ehcache-core:2.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate:hibernate-core:4.2.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: antlr:antlr:2.7.7"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: dom4j:dom4j:1.6.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:1.0.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate:hibernate-entitymanager:4.2.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate.common:hibernate-commons-annotations:4.0.1.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.hibernate:hibernate-validator:5.0.0.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.validation:validation-api:1.1.0.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jboss.logging:jboss-logging:3.1.1.GA"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml:classmate:0.8.0"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: org.glassfish.web:javax.el:2.2.4"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"RUNTIME"
name=
"Maven: javax.el:javax.el-api:2.2.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.xerial.snappy:snappy-java:1.1.2.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:slf4j-api:1.7.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jcl-over-slf4j:1.7.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.1.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.1.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-access:1.1.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.logback-extensions:logback-ext-spring:0.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.javassist:javassist:3.20.0-GA"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:5.1.25"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-databind:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-core:2.8.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.inject:javax.inject:1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: redis.clients:jedis:2.8.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-pool2:2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:druid:1.0.14"
level=
"project"
/>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:jconsole:1.8.0"
>
<CLASSES>
<root
url=
"jar://E:/Java/jdk1.8.0_65/lib/jconsole.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:tools:1.8.0"
>
<CLASSES>
<root
url=
"jar://E:/Java/jdk1.8.0_65/lib/tools.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"library"
name=
"Maven: net.sf.json-lib:json-lib:jdk15:2.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-beanutils:commons-beanutils:1.8.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-collections:commons-collections:3.2.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.sf.ezmorph:ezmorph:1.0.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-lang:commons-lang:2.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.json:json:20090211"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-fileupload:commons-fileupload:1.2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-io:commons-io:2.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.belerweb:pinyin4j:2.5.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-email:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.mail:mail:1.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.activation:activation:1.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: com.googlecode.jmockit:jmockit:1.5"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: com.googlecode.jmockit:jmockit-coverage:0.999.24"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jdom:jdom:1.1.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.amazonaws:aws-java-sdk-dynamodb:1.11.52"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.amazonaws:aws-java-sdk-s3:1.11.52"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.amazonaws:aws-java-sdk-kms:1.11.52"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.amazonaws:aws-java-sdk-core:1.11.52"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.httpcomponents:httpclient:4.5.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.httpcomponents:httpcore:4.4.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: software.amazon.ion:ion-java:1.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.6.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.amazonaws:jmespath-java:1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.jsoup:jsoup:1.6.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.codehaus.jettison:jettison:1.3.7"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: stax:stax-api:1.0.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.guava:guava:20.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-httpclient:commons-httpclient:3.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.sun.jersey:jersey-core:1.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.webjars.npm:isemail:2.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-net:commons-net:3.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: dnsjava:dnsjava:2.1.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.poi:poi:3.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-codec:commons-codec:1.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.commons:commons-collections4:4.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.poi:poi-ooxml:3.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.poi:poi-ooxml-schemas:3.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.xmlbeans:xmlbeans:2.6.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.virtuald:curvesapi:1.04"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.anarres.lzo:lzo-core:1.0.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:annotations:2.0.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-all:4.0.23.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.gson:gson:1.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.api-ads:ads-lib:3.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.inject:guice:4.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.inject.extensions:guice-assistedinject:4.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.inject.extensions:guice-multibindings:4.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-configuration:commons-configuration:1.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: net.sf.opencsv:opencsv:1.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: joda-time:joda-time:2.8.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.api-client:google-api-client:1.22.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.oauth-client:google-oauth-client:1.22.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.api-ads:adwords-axis:3.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.api-ads:ads-lib-axis:3.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-discovery:commons-discovery:0.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: javax.xml:jaxrpc-api:1.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.axis:axis:1.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: wsdl4j:wsdl4j:1.6.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client-jackson2:1.22.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client:1.22.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:jsr305:1.3.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.beust:jcommander:1.48"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pom.xml
View file @
6c65e984
<?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/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.reyun
</groupId>
<artifactId>
manage
</artifactId>
<packaging>
war
</packaging>
<version>
0.0.1-SNAPSHOT
</version>
<name>
myweb Maven Webapp
</name>
<url>
http://maven.apache.org
</url>
<repositories>
<repository>
<id>
cloudera-repo-releases
</id>
<url>
https://repository.cloudera.com/artifactory/cloudera-repos/
</url>
</repository>
</repositories>
<!-- 定义相关属性 -->
<properties>
<jdk-version>
1.8
</jdk-version>
<junit-version>
4.11
</junit-version>
<spring-version>
4.3.4.RELEASE
</spring-version>
<maven.jetty.version>
9.2.2.v20140723
</maven.jetty.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<logback.version>
1.1.3
</logback.version>
</properties>
<profiles>
<profile>
<id>
dev
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<label>
dev
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://192.168.2.57:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
root
</default.datasource.username>
<default.datasource.password>
reyun123
</default.datasource.password>
<office.url>
jdbc:mysql://192.168.2.57:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
root
</office.username>
<office.password>
reyun123
</office.password>
<tkio.url>
jdbc:mysql://192.168.2.57:3306/trackingio?characterEncoding=utf-8
</tkio.url>
<tkio.username>
root
</tkio.username>
<tkio.password>
reyun123
</tkio.password>
<track.url>
jdbc:mysql://192.168.2.57:3306/track?characterEncoding=utf-8
</track.url>
<track.username>
root
</track.username>
<track.password>
reyun123
</track.password>
<dmp.url>
jdbc:mysql://192.168.2.57:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
root
</dmp.username>
<dmp.password>
reyun123
</dmp.password>
<io.url>
jdbc:mysql://192.168.2.57:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
root
</io.username>
<io.password>
reyun123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manar@reyun.com
</mail.username>
<mail.password>
Reyun123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://10.3.20.41:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
192.168.2.57
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
192.168.2.57
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
0
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
<profile>
<id>
test
</id>
<properties>
<label>
product
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://10.3.20.32:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
root
</default.datasource.username>
<default.datasource.password>
reyun.123
</default.datasource.password>
<office.url>
jdbc:mysql://10.3.20.32:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
root
</office.username>
<office.password>
reyun.123
</office.password>
<tkio.url>
jdbc:mysql://10.3.20.32:3306/trackingio_test?characterEncoding=utf-8
</tkio.url>
<tkio.username>
root
</tkio.username>
<tkio.password>
reyun.123
</tkio.password>
<track.url>
jdbc:mysql://10.3.20.32:3306/track_test?characterEncoding=utf-8
</track.url>
<track.username>
root
</track.username>
<track.password>
reyun.123
</track.password>
<dmp.url>
jdbc:mysql://10.3.20.32:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
root
</dmp.username>
<dmp.password>
reyun.123
</dmp.password>
<io.url>
jdbc:mysql://10.3.20.32:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
root
</io.username>
<io.password>
reyun.123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manxiaang@reyun.com
</mail.username>
<mail.password>
Mxq123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://localhost:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
10.3.20.33
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
10.3.20.33
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
13
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
<profile>
<id>
preview
</id>
<properties>
<label>
dev
</label>
<datasource.url>
jdbc:mysql://reyuntest.c42s8pkbxrdg.rds.cn-north-1.amazonaws.com.cn:3306/trackingio_test?characterEncoding=utf-8
</datasource.url>
<datasource.username>
reyuntest
</datasource.username>
<datasource.password>
reyuntest
</datasource.password>
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<report.url>
http://172.31.12.82:8003
</report.url>
</properties>
</profile>
<profile>
<id>
aws
</id>
<properties>
<label>
product
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
trackingio
</default.datasource.username>
<default.datasource.password>
trackingio
</default.datasource.password>
<office.url>
jdbc:mysql://track.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
office
</office.username>
<office.password>
office
</office.password>
<tkio.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/trackingio?characterEncoding=utf-8
</tkio.url>
<tkio.username>
trackingio
</tkio.username>
<tkio.password>
trackingio
</tkio.password>
<track.url>
jdbc:mysql://track.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/track?characterEncoding=utf-8
</track.url>
<track.username>
admin
</track.username>
<track.password>
admin!@#456
</track.password>
<dmp.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
trackingio
</dmp.username>
<dmp.password>
trackingio
</dmp.password>
<io.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
reyun
</io.username>
<io.password>
Reyun123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manager@reyun.com
</mail.username>
<mail.password>
Reyun123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://internal-report-api-976419027.cn-north-1.elb.amazonaws.com.cn
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
trackingio-web.nr7fi4.0001.cnn1.cache.amazonaws.com.cn
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
trackingio-web.nr7fi4.0001.cnn1.cache.amazonaws.com.cn
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
13
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
</profiles>
<!-- 定义依赖包 -->
<dependencies>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
3.0.1
</version>
<scope>
provided
</scope>
</dependency>
<!-- spring begin -->
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-core
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-beans
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-web
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-webmvc
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context-support
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-jpa
</artifactId>
<version>
1.3.2.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-aspects
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-aop
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
<version>
1.7.1.RELEASE
</version>
<exclusions>
<exclusion>
<artifactId>
spring-aop
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-core
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-context-support
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-context
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
jcl-over-slf4j
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- spring end -->
<dependency>
<groupId>
net.sf.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
<version>
2.9.1
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.googlecode.ehcache-spring-annotations
</groupId>
<artifactId>
ehcache-spring-annotations
</artifactId>
<version>
1.1.2
</version>
<type>
jar
</type>
<scope>
compile
</scope>
<exclusions>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-aop
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-core
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- hibernate begin -->
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-core
</artifactId>
<version>
4.2.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
javassist
</artifactId>
<groupId>
org.javassist
</groupId>
</exclusion>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-entitymanager
</artifactId>
<version>
4.2.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
javassist
</artifactId>
<groupId>
org.javassist
</groupId>
</exclusion>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate.common
</groupId>
<artifactId>
hibernate-commons-annotations
</artifactId>
<version>
4.0.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-validator
</artifactId>
<version>
5.0.0.Final
</version>
</dependency>
<dependency>
<groupId>
org.xerial.snappy
</groupId>
<artifactId>
snappy-java
</artifactId>
<version>
1.0.4.1
</version>
</dependency>
<!-- hibernate end -->
<!--logger begin -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.5
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
<version>
1.7.5
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
${logback.version}
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-access
</artifactId>
<version>
${logback.version}
</version>
</dependency>
<dependency>
<groupId>
org.logback-extensions
</groupId>
<artifactId>
logback-ext-spring
</artifactId>
<version>
0.1.2
</version>
<exclusions>
<exclusion>
<artifactId>
logback-classic
</artifactId>
<groupId>
ch.qos.logback
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.javassist
</groupId>
<artifactId>
javassist
</artifactId>
<version>
3.20.0-GA
</version>
</dependency>
<!-- logger end -->
<!-- database begin -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.25
</version>
</dependency>
<!-- database end -->
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-annotations
</artifactId>
<version>
2.8.5
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
<version>
2.8.5
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-annotations
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.inject
</groupId>
<artifactId>
javax.inject
</artifactId>
<version>
1
</version>
</dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<version>
2.8.0
</version>
<type>
jar
</type>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
<version>
1.0.14
</version>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
2.4
</version>
<classifier>
jdk15
</classifier>
<exclusions>
<exclusion>
<artifactId>
commons-lang
</artifactId>
<groupId>
commons-lang
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-beanutils
</artifactId>
<groupId>
commons-beanutils
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-collections
</artifactId>
<groupId>
commons-collections
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
commons-lang
</groupId>
<artifactId>
commons-lang
</artifactId>
<version>
2.6
</version>
</dependency>
<dependency>
<groupId>
org.json
</groupId>
<artifactId>
json
</artifactId>
<version>
20090211
</version>
</dependency>
<dependency>
<groupId>
commons-fileupload
</groupId>
<artifactId>
commons-fileupload
</artifactId>
<version>
1.2.2
</version>
</dependency>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
com.belerweb
</groupId>
<artifactId>
pinyin4j
</artifactId>
<version>
2.5.0
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-email
</artifactId>
<version>
1.2
</version>
</dependency>
<!-- JMockit -->
<dependency>
<groupId>
com.googlecode.jmockit
</groupId>
<artifactId>
jmockit
</artifactId>
<version>
1.5
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.googlecode.jmockit
</groupId>
<artifactId>
jmockit-coverage
</artifactId>
<version>
0.999.24
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.jdom
</groupId>
<artifactId>
jdom
</artifactId>
<version>
1.1.3
</version>
</dependency>
<dependency>
<groupId>
com.amazonaws
</groupId>
<artifactId>
aws-java-sdk-dynamodb
</artifactId>
<version>
1.11.52
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
jackson-databind
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
joda-time
</artifactId>
<groupId>
joda-time
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<artifactId>
jsoup
</artifactId>
<version>
1.6.3
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.codehaus.jettison/jettison -->
<dependency>
<groupId>
org.codehaus.jettison
</groupId>
<artifactId>
jettison
</artifactId>
<version>
1.3.7
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
20.0
</version>
</dependency>
<dependency>
<groupId>
commons-httpclient
</groupId>
<artifactId>
commons-httpclient
</artifactId>
<version>
3.1
</version>
<exclusions>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.sun.jersey
</groupId>
<artifactId>
jersey-core
</artifactId>
<version>
1.8
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.webjars.npm/isemail -->
<dependency>
<groupId>
org.webjars.npm
</groupId>
<artifactId>
isemail
</artifactId>
<version>
2.1.0
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
<dependency>
<groupId>
commons-net
</groupId>
<artifactId>
commons-net
</artifactId>
<version>
3.6
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/dnsjava/dnsjava -->
<dependency>
<groupId>
dnsjava
</groupId>
<artifactId>
dnsjava
</artifactId>
<version>
2.1.8
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
<version>
3.16
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi-ooxml
</artifactId>
<version>
3.16
</version>
</dependency>
<dependency>
<groupId>
org.xerial.snappy
</groupId>
<artifactId>
snappy-java
</artifactId>
<version>
1.1.2.6
</version>
</dependency>
<dependency>
<groupId>
org.anarres.lzo
</groupId>
<artifactId>
lzo-core
</artifactId>
<version>
1.0.5
</version>
<exclusions>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
io.netty
</groupId>
<artifactId>
netty-all
</artifactId>
<version>
4.0.23.Final
</version>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
<version>
1.6
</version>
</dependency>
<!-- cat //End-->
<!-- Ads client library dependencies -->
<dependency>
<groupId>
com.google.api-ads
</groupId>
<artifactId>
ads-lib
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
guice
</artifactId>
<groupId>
com.google.inject
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.google.api-ads
</groupId>
<artifactId>
adwords-axis
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Third party dependencies -->
<dependency>
<groupId>
com.google.http-client
</groupId>
<artifactId>
google-http-client-jackson2
</artifactId>
<version>
1.22.0
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
httpclient
</artifactId>
<groupId>
org.apache.httpcomponents
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.beust
</groupId>
<artifactId>
jcommander
</artifactId>
<version>
1.48
</version>
</dependency>
</dependencies>
<!-- 配置构建 -->
<build>
<finalName>
manager
</finalName>
<sourceDirectory>
src/main/java
</sourceDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
<includes>
<include>
**/*.*
</include>
</includes>
<excludes>
<exclude>
**/*.dat
</exclude>
</excludes>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
**/*.dat
</include>
</includes>
</resource>
<resource>
<directory>
src/main/resources/logback/${label}
</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<configuration>
<encoding>
UTF-8
</encoding>
<source>
1.8
</source>
<target>
1.8
</target>
<showWarnings>
true
</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.19
</version>
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.6
</version>
</plugin>
<plugin>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-maven-plugin
</artifactId>
<version>
${maven.jetty.version}
</version>
<configuration>
<httpConnector>
<port>
8082
</port>
</httpConnector>
<webAppConfig>
<defaultsDescriptor>
src/main/resources/webdefault.xml
</defaultsDescriptor>
</webAppConfig>
</configuration>
</plugin>
</plugins>
</build>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.reyun
</groupId>
<artifactId>
manage
</artifactId>
<packaging>
war
</packaging>
<version>
0.0.1-SNAPSHOT
</version>
<name>
myweb Maven Webapp
</name>
<url>
http://maven.apache.org
</url>
<repositories>
<repository>
<id>
cloudera-repo-releases
</id>
<url>
https://repository.cloudera.com/artifactory/cloudera-repos/
</url>
</repository>
</repositories>
<!-- 定义相关属性 -->
<properties>
<jdk-version>
1.8
</jdk-version>
<junit-version>
4.11
</junit-version>
<spring-version>
4.3.4.RELEASE
</spring-version>
<maven.jetty.version>
9.2.2.v20140723
</maven.jetty.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<logback.version>
1.1.3
</logback.version>
</properties>
<profiles>
<profile>
<id>
dev
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<label>
dev
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://192.168.2.57:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
root
</default.datasource.username>
<default.datasource.password>
reyun123
</default.datasource.password>
<office.url>
jdbc:mysql://192.168.2.57:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
root
</office.username>
<office.password>
reyun123
</office.password>
<tkio.url>
jdbc:mysql://192.168.2.57:3306/trackingio?characterEncoding=utf-8
</tkio.url>
<tkio.username>
root
</tkio.username>
<tkio.password>
reyun123
</tkio.password>
<track.url>
jdbc:mysql://192.168.2.57:3306/track?characterEncoding=utf-8
</track.url>
<track.username>
root
</track.username>
<track.password>
reyun123
</track.password>
<dmp.url>
jdbc:mysql://192.168.2.57:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
root
</dmp.username>
<dmp.password>
reyun123
</dmp.password>
<io.url>
jdbc:mysql://192.168.2.57:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
root
</io.username>
<io.password>
reyun123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manar@reyun.com
</mail.username>
<mail.password>
Reyun123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://10.3.20.41:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
192.168.2.57
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
192.168.2.57
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
0
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
<profile>
<id>
test
</id>
<properties>
<label>
product
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://10.3.20.32:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
root
</default.datasource.username>
<default.datasource.password>
reyun.123
</default.datasource.password>
<office.url>
jdbc:mysql://10.3.20.32:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
root
</office.username>
<office.password>
reyun.123
</office.password>
<tkio.url>
jdbc:mysql://10.3.20.32:3306/trackingio_test?characterEncoding=utf-8
</tkio.url>
<tkio.username>
root
</tkio.username>
<tkio.password>
reyun.123
</tkio.password>
<track.url>
jdbc:mysql://10.3.20.32:3306/track_test?characterEncoding=utf-8
</track.url>
<track.username>
root
</track.username>
<track.password>
reyun.123
</track.password>
<dmp.url>
jdbc:mysql://10.3.20.32:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
root
</dmp.username>
<dmp.password>
reyun.123
</dmp.password>
<io.url>
jdbc:mysql://10.3.20.32:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
root
</io.username>
<io.password>
reyun.123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manxiaang@reyun.com
</mail.username>
<mail.password>
Mxq123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<!--<report.url>http://localhost:9010</report.url>-->
<report.url>
http://http://10.3.20.41:11010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
10.3.20.33
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
10.3.20.33
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
13
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
<profile>
<id>
preview
</id>
<properties>
<label>
dev
</label>
<datasource.url>
jdbc:mysql://reyuntest.c42s8pkbxrdg.rds.cn-north-1.amazonaws.com.cn:3306/trackingio_test?characterEncoding=utf-8
</datasource.url>
<datasource.username>
reyuntest
</datasource.username>
<datasource.password>
reyuntest
</datasource.password>
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<report.url>
http://172.31.12.82:8003
</report.url>
</properties>
</profile>
<profile>
<id>
aws
</id>
<properties>
<label>
product
</label>
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
trackingio
</default.datasource.username>
<default.datasource.password>
trackingio
</default.datasource.password>
<office.url>
jdbc:mysql://track.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
office
</office.username>
<office.password>
office
</office.password>
<tkio.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/trackingio?characterEncoding=utf-8
</tkio.url>
<tkio.username>
trackingio
</tkio.username>
<tkio.password>
trackingio
</tkio.password>
<track.url>
jdbc:mysql://track.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/track?characterEncoding=utf-8
</track.url>
<track.username>
admin
</track.username>
<track.password>
admin!@#456
</track.password>
<dmp.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
trackingio
</dmp.username>
<dmp.password>
trackingio
</dmp.password>
<io.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
reyun
</io.username>
<io.password>
Reyun123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manager@reyun.com
</mail.username>
<mail.password>
Reyun123
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhangliang
</mail.list>
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://internal-report-api-976419027.cn-north-1.elb.amazonaws.com.cn
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
<redis.ip.unknown.requesttimes>
5
</redis.ip.unknown.requesttimes>
<redis.surl.host>
trackingio-web.nr7fi4.0001.cnn1.cache.amazonaws.com.cn
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.event.host>
trackingio-web.nr7fi4.0001.cnn1.cache.amazonaws.com.cn
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.database>
13
</redis.event.database>
<!--Redis setting//end-->
</properties>
</profile>
</profiles>
<!-- 定义依赖包 -->
<dependencies>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
3.0.1
</version>
<scope>
provided
</scope>
</dependency>
<!-- spring begin -->
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-core
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-beans
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-web
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-webmvc
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-context-support
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-jpa
</artifactId>
<version>
1.3.2.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-aspects
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-aop
</artifactId>
<version>
${spring-version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
<version>
1.7.1.RELEASE
</version>
<exclusions>
<exclusion>
<artifactId>
spring-aop
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-core
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-context-support
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-context
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
jcl-over-slf4j
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- spring end -->
<dependency>
<groupId>
net.sf.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
<version>
2.9.1
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.googlecode.ehcache-spring-annotations
</groupId>
<artifactId>
ehcache-spring-annotations
</artifactId>
<version>
1.1.2
</version>
<type>
jar
</type>
<scope>
compile
</scope>
<exclusions>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-aop
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-core
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- hibernate begin -->
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-core
</artifactId>
<version>
4.2.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
javassist
</artifactId>
<groupId>
org.javassist
</groupId>
</exclusion>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-entitymanager
</artifactId>
<version>
4.2.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
javassist
</artifactId>
<groupId>
org.javassist
</groupId>
</exclusion>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate.common
</groupId>
<artifactId>
hibernate-commons-annotations
</artifactId>
<version>
4.0.1.Final
</version>
<exclusions>
<exclusion>
<artifactId>
jboss-logging
</artifactId>
<groupId>
org.jboss.logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-validator
</artifactId>
<version>
5.0.0.Final
</version>
</dependency>
<dependency>
<groupId>
org.xerial.snappy
</groupId>
<artifactId>
snappy-java
</artifactId>
<version>
1.0.4.1
</version>
</dependency>
<!-- hibernate end -->
<!--logger begin -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.5
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
<version>
1.7.5
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
${logback.version}
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-access
</artifactId>
<version>
${logback.version}
</version>
</dependency>
<dependency>
<groupId>
org.logback-extensions
</groupId>
<artifactId>
logback-ext-spring
</artifactId>
<version>
0.1.2
</version>
<exclusions>
<exclusion>
<artifactId>
logback-classic
</artifactId>
<groupId>
ch.qos.logback
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.javassist
</groupId>
<artifactId>
javassist
</artifactId>
<version>
3.20.0-GA
</version>
</dependency>
<!-- logger end -->
<!-- database begin -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.25
</version>
</dependency>
<!-- database end -->
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-annotations
</artifactId>
<version>
2.8.5
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
<version>
2.8.5
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-annotations
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.inject
</groupId>
<artifactId>
javax.inject
</artifactId>
<version>
1
</version>
</dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
<version>
2.8.0
</version>
<type>
jar
</type>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid
</artifactId>
<version>
1.0.14
</version>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
2.4
</version>
<classifier>
jdk15
</classifier>
<exclusions>
<exclusion>
<artifactId>
commons-lang
</artifactId>
<groupId>
commons-lang
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-beanutils
</artifactId>
<groupId>
commons-beanutils
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-collections
</artifactId>
<groupId>
commons-collections
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
commons-lang
</groupId>
<artifactId>
commons-lang
</artifactId>
<version>
2.6
</version>
</dependency>
<dependency>
<groupId>
org.json
</groupId>
<artifactId>
json
</artifactId>
<version>
20090211
</version>
</dependency>
<dependency>
<groupId>
commons-fileupload
</groupId>
<artifactId>
commons-fileupload
</artifactId>
<version>
1.2.2
</version>
</dependency>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
com.belerweb
</groupId>
<artifactId>
pinyin4j
</artifactId>
<version>
2.5.0
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-email
</artifactId>
<version>
1.2
</version>
</dependency>
<!-- JMockit -->
<dependency>
<groupId>
com.googlecode.jmockit
</groupId>
<artifactId>
jmockit
</artifactId>
<version>
1.5
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.googlecode.jmockit
</groupId>
<artifactId>
jmockit-coverage
</artifactId>
<version>
0.999.24
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.jdom
</groupId>
<artifactId>
jdom
</artifactId>
<version>
1.1.3
</version>
</dependency>
<dependency>
<groupId>
com.amazonaws
</groupId>
<artifactId>
aws-java-sdk-dynamodb
</artifactId>
<version>
1.11.52
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
jackson-databind
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
joda-time
</artifactId>
<groupId>
joda-time
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<artifactId>
jsoup
</artifactId>
<version>
1.6.3
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.codehaus.jettison/jettison -->
<dependency>
<groupId>
org.codehaus.jettison
</groupId>
<artifactId>
jettison
</artifactId>
<version>
1.3.7
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
20.0
</version>
</dependency>
<dependency>
<groupId>
commons-httpclient
</groupId>
<artifactId>
commons-httpclient
</artifactId>
<version>
3.1
</version>
<exclusions>
<exclusion>
<artifactId>
commons-codec
</artifactId>
<groupId>
commons-codec
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.sun.jersey
</groupId>
<artifactId>
jersey-core
</artifactId>
<version>
1.8
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.webjars.npm/isemail -->
<dependency>
<groupId>
org.webjars.npm
</groupId>
<artifactId>
isemail
</artifactId>
<version>
2.1.0
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
<dependency>
<groupId>
commons-net
</groupId>
<artifactId>
commons-net
</artifactId>
<version>
3.6
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/dnsjava/dnsjava -->
<dependency>
<groupId>
dnsjava
</groupId>
<artifactId>
dnsjava
</artifactId>
<version>
2.1.8
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi
</artifactId>
<version>
3.16
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi-ooxml
</artifactId>
<version>
3.16
</version>
</dependency>
<dependency>
<groupId>
org.xerial.snappy
</groupId>
<artifactId>
snappy-java
</artifactId>
<version>
1.1.2.6
</version>
</dependency>
<dependency>
<groupId>
org.anarres.lzo
</groupId>
<artifactId>
lzo-core
</artifactId>
<version>
1.0.5
</version>
<exclusions>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
io.netty
</groupId>
<artifactId>
netty-all
</artifactId>
<version>
4.0.23.Final
</version>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
<version>
1.6
</version>
</dependency>
<!-- cat //End-->
<!-- Ads client library dependencies -->
<dependency>
<groupId>
com.google.api-ads
</groupId>
<artifactId>
ads-lib
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
guice
</artifactId>
<groupId>
com.google.inject
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.google.api-ads
</groupId>
<artifactId>
adwords-axis
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Third party dependencies -->
<dependency>
<groupId>
com.google.http-client
</groupId>
<artifactId>
google-http-client-jackson2
</artifactId>
<version>
1.22.0
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
httpclient
</artifactId>
<groupId>
org.apache.httpcomponents
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.beust
</groupId>
<artifactId>
jcommander
</artifactId>
<version>
1.48
</version>
</dependency>
</dependencies>
<!-- 配置构建 -->
<build>
<finalName>
manager
</finalName>
<sourceDirectory>
src/main/java
</sourceDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
<includes>
<include>
**/*.*
</include>
</includes>
<excludes>
<exclude>
**/*.dat
</exclude>
</excludes>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
**/*.dat
</include>
</includes>
</resource>
<resource>
<directory>
src/main/resources/logback/${label}
</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<configuration>
<encoding>
UTF-8
</encoding>
<source>
1.8
</source>
<target>
1.8
</target>
<showWarnings>
true
</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.19
</version>
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.6
</version>
</plugin>
<plugin>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-maven-plugin
</artifactId>
<version>
${maven.jetty.version}
</version>
<configuration>
<httpConnector>
<port>
8082
</port>
</httpConnector>
<webAppConfig>
<defaultsDescriptor>
src/main/resources/webdefault.xml
</defaultsDescriptor>
</webAppConfig>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/common/controller/LoginController.java
View file @
6c65e984
...
...
@@ -113,4 +113,7 @@ public class LoginController {
return
ResultModel
.
OK
(
true
);
}
}
This diff is collapsed.
Click to expand it.
src/main/java/common/service/impl/UserServiceImpl.java
View file @
6c65e984
...
...
@@ -353,5 +353,10 @@ public class UserServiceImpl implements UserService {
return
result
;
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
CipherUtil
.
generatePassword
(
"111111"
));
}
}
This diff is collapsed.
Click to expand it.
src/main/java/track/service/impl/TrackAccountFlowRestrictServiceImpl.java
View file @
6c65e984
package
track
.
service
.
impl
;
import
org.json.JSONArray
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
tkio.model.AccountRestrict4Web
;
import
track.model.Account
;
import
track.model.App
;
import
track.repository.MeasureRepository
;
import
track.repository.TrackAppRepository
;
import
track.service.TrackAccountFlowRestrictService
;
import
util.Constant
;
import
util.DateUtil
;
import
util.HttpClientUtil
;
import
util.ValidateUtil
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.text.DecimalFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* Created by song on 2017/10/19.
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/spring/applicationContext.xml
View file @
6c65e984
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xmlns:jpa=
"http://www.springframework.org/schema/data/jpa"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xmlns:jpa=
"http://www.springframework.org/schema/data/jpa"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"
default-lazy-init=
"true"
>
<description>
Spring公共配置
</description>
<aop:aspectj-autoproxy
proxy-target-class=
"true"
/>
<context:component-scan
base-package=
"tkio"
/>
<context:component-scan
base-package=
"track"
/>
<context:component-scan
base-package=
"userio"
/>
<context:component-scan
base-package=
"common"
/>
<context:component-scan
base-package=
"office"
/>
<context:component-scan
base-package=
"dmp"
/>
<context:component-scan
base-package=
"security"
/>
<context:component-scan
base-package=
"adi"
/>
<context:property-placeholder
location=
"classpath:persistence.properties,classpath:redis.properties"
/>
<!--Redis配置-->
<bean
id=
"poolConfig"
class=
"redis.clients.jedis.JedisPoolConfig"
>
<property
name=
"maxIdle"
value=
"300"
/>
<property
name=
"maxTotal"
value=
"600"
/>
<property
name=
"maxWaitMillis"
value=
"1000"
></property>
<property
name=
"testOnBorrow"
value=
"true"
/>
</bean>
<bean
id=
"connectionFactory"
class=
"org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:hostName=
"${redis.Surl.host}"
p:port=
"${redis.Surl.port}"
p:poolConfig-ref=
"poolConfig"
/>
<bean
id=
"redisTemplate"
class=
"org.springframework.data.redis.core.StringRedisTemplate"
>
<property
name=
"connectionFactory"
ref=
"connectionFactory"
/>
</bean>
<!--//Redis配置 -->
<bean
id=
"parentDataSource"
class=
"com.alibaba.druid.pool.DruidDataSource"
destroy-method=
"close"
>
<property
name=
"driverClassName"
value=
"${dataSource.driverClassName}"
/>
<!-- 配置初始化大小、最小、最大 -->
<property
name=
"initialSize"
value=
"1"
/>
<property
name=
"minIdle"
value=
"1"
/>
<property
name=
"maxActive"
value=
"20"
/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"300000"
/>
</bean>
<bean
id=
"dataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${default.dataSource.url}"
/>
<property
name=
"username"
value=
"${default.dataSource.username}"
/>
<property
name=
"password"
value=
"${default.dataSource.password}"
/>
</bean>
<bean
id=
"officeDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${office.dataSource.url}"
/>
<property
name=
"username"
value=
"${office.dataSource.username}"
/>
<property
name=
"password"
value=
"${office.dataSource.password}"
/>
</bean>
<bean
id=
"tkioDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${tkio.dataSource.url}"
/>
<property
name=
"username"
value=
"${tkio.dataSource.username}"
/>
<property
name=
"password"
value=
"${tkio.dataSource.password}"
/>
</bean>
<bean
id=
"trackDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${track.dataSource.url}"
/>
<property
name=
"username"
value=
"${track.dataSource.username}"
/>
<property
name=
"password"
value=
"${track.dataSource.password}"
/>
</bean>
<bean
id=
"dmpDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${dmp.dataSource.url}"
/>
<property
name=
"username"
value=
"${dmp.dataSource.username}"
/>
<property
name=
"password"
value=
"${dmp.dataSource.password}"
/>
</bean>
<bean
id=
"ioDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${io.dataSource.url}"
/>
<property
name=
"username"
value=
"${io.dataSource.username}"
/>
<property
name=
"password"
value=
"${io.dataSource.password}"
/>
</bean>
<!-- JPA实体管理工厂的配置 -->
<bean
id=
"entityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"packagesToScan"
value=
"common.model"
>
</property>
<property
name=
"persistenceUnitName"
value=
"defaultUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"officeEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"officeDataSource"
/>
<property
name=
"packagesToScan"
value=
"office.model"
></property>
<property
name=
"persistenceUnitName"
value=
"officeUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"tkioEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"tkioDataSource"
/>
<property
name=
"packagesToScan"
value=
"tkio.model"
></property>
<property
name=
"persistenceUnitName"
value=
"tkioUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"trackEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"trackDataSource"
/>
<property
name=
"packagesToScan"
value=
"track.model"
></property>
<property
name=
"persistenceUnitName"
value=
"tkrackUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"dmpEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"dmpDataSource"
/>
<property
name=
"packagesToScan"
value=
"dmp.model"
></property>
<property
name=
"persistenceUnitName"
value=
"dmpUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"ioEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"ioDataSource"
/>
<property
name=
"packagesToScan"
value=
"userio.model"
></property>
<property
name=
"persistenceUnitName"
value=
"ioUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<!--指定实现JPA的适配器 -->
<bean
id=
"hibernateJpaVendorAdapter"
class=
"org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
>
<property
name=
"databasePlatform"
value=
"org.hibernate.dialect.MySQLDialect"
/>
</bean>
<!-- Jpa 事务配置 -->
<bean
id=
"transactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"entityManagerFactory"
/>
</bean>
<bean
id=
"officeTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"officeEntityManagerFactory"
/>
</bean>
<bean
id=
"tkioTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"tkioEntityManagerFactory"
/>
</bean>
<bean
id=
"trackTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"trackEntityManagerFactory"
/>
</bean>
<bean
id=
"dmpTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"dmpEntityManagerFactory"
/>
</bean>
<bean
id=
"ioTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"ioEntityManagerFactory"
/>
</bean>
<!-- Spring Data Jpa配置 -->
<jpa:repositories
base-package=
"common.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"transactionManager"
entity-manager-factory-ref=
"entityManagerFactory"
/>
<jpa:repositories
base-package=
"office.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"officeTransactionManager"
entity-manager-factory-ref=
"officeEntityManagerFactory"
/>
<jpa:repositories
base-package=
"tkio.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"tkioTransactionManager"
entity-manager-factory-ref=
"tkioEntityManagerFactory"
/>
<jpa:repositories
base-package=
"track.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"trackTransactionManager"
entity-manager-factory-ref=
"trackEntityManagerFactory"
/>
<jpa:repositories
base-package=
"dmp.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"dmpTransactionManager"
entity-manager-factory-ref=
"dmpEntityManagerFactory"
/>
<jpa:repositories
base-package=
"userio.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"ioTransactionManager"
entity-manager-factory-ref=
"ioEntityManagerFactory"
/>
<!-- 使用annotation定义事务 -->
<tx:annotation-driven
transaction-manager=
"transactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"officeTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"tkioTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"trackTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"dmpTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"ioTransactionManager"
proxy-target-class=
"true"
/>
<tx:advice
id=
"txAdvice"
transaction-manager=
"transactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"officeTxAdvice"
transaction-manager=
"officeTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"tkioTxAdvice"
transaction-manager=
"tkioTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"trackTxAdvice"
transaction-manager=
"trackTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"dmpTxAdvice"
transaction-manager=
"dmpTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"ioTxAdvice"
transaction-manager=
"ioTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"txPointcut"
expression=
"execution(* common.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"txAdvice"
pointcut-ref=
"txPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"officetxPointcut"
expression=
"execution(* office.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"officeTxAdvice"
pointcut-ref=
"officetxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"tkiotxPointcut"
expression=
"execution(* tkio.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"tkioTxAdvice"
pointcut-ref=
"tkiotxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"tracktxPointcut"
expression=
"execution(* track.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"trackTxAdvice"
pointcut-ref=
"tracktxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"iotxPointcut"
expression=
"execution(* userio.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"ioTxAdvice"
pointcut-ref=
"iotxPointcut"
/>
</aop:config>
default-lazy-init=
"true"
>
<description>
Spring公共配置
</description>
<aop:aspectj-autoproxy
proxy-target-class=
"true"
/>
<context:component-scan
base-package=
"tkio"
/>
<context:component-scan
base-package=
"track"
/>
<context:component-scan
base-package=
"userio"
/>
<context:component-scan
base-package=
"common"
/>
<context:component-scan
base-package=
"office"
/>
<context:component-scan
base-package=
"dmp"
/>
<context:component-scan
base-package=
"security"
/>
<context:component-scan
base-package=
"adi"
/>
<context:property-placeholder
location=
"classpath:persistence.properties,classpath:redis.properties"
/>
<!--Redis配置-->
<bean
id=
"poolConfig"
class=
"redis.clients.jedis.JedisPoolConfig"
>
<property
name=
"maxIdle"
value=
"300"
/>
<property
name=
"maxTotal"
value=
"600"
/>
<property
name=
"maxWaitMillis"
value=
"1000"
></property>
<property
name=
"testOnBorrow"
value=
"true"
/>
</bean>
<bean
id=
"connectionFactory"
class=
"org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:hostName=
"${redis.Surl.host}"
p:port=
"${redis.Surl.port}"
p:poolConfig-ref=
"poolConfig"
/>
<bean
id=
"redisTemplate"
class=
"org.springframework.data.redis.core.StringRedisTemplate"
>
<property
name=
"connectionFactory"
ref=
"connectionFactory"
/>
</bean>
<!--//Redis配置 -->
<bean
id=
"parentDataSource"
class=
"com.alibaba.druid.pool.DruidDataSource"
destroy-method=
"close"
>
<property
name=
"driverClassName"
value=
"${dataSource.driverClassName}"
/>
<!-- 配置初始化大小、最小、最大 -->
<property
name=
"initialSize"
value=
"1"
/>
<property
name=
"minIdle"
value=
"1"
/>
<property
name=
"maxActive"
value=
"20"
/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"300000"
/>
</bean>
<bean
id=
"dataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${default.dataSource.url}"
/>
<property
name=
"username"
value=
"${default.dataSource.username}"
/>
<property
name=
"password"
value=
"${default.dataSource.password}"
/>
</bean>
<bean
id=
"officeDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${office.dataSource.url}"
/>
<property
name=
"username"
value=
"${office.dataSource.username}"
/>
<property
name=
"password"
value=
"${office.dataSource.password}"
/>
</bean>
<bean
id=
"tkioDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${tkio.dataSource.url}"
/>
<property
name=
"username"
value=
"${tkio.dataSource.username}"
/>
<property
name=
"password"
value=
"${tkio.dataSource.password}"
/>
</bean>
<bean
id=
"trackDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${track.dataSource.url}"
/>
<property
name=
"username"
value=
"${track.dataSource.username}"
/>
<property
name=
"password"
value=
"${track.dataSource.password}"
/>
</bean>
<bean
id=
"dmpDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${dmp.dataSource.url}"
/>
<property
name=
"username"
value=
"${dmp.dataSource.username}"
/>
<property
name=
"password"
value=
"${dmp.dataSource.password}"
/>
</bean>
<bean
id=
"ioDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${io.dataSource.url}"
/>
<property
name=
"username"
value=
"${io.dataSource.username}"
/>
<property
name=
"password"
value=
"${io.dataSource.password}"
/>
</bean>
<!-- JPA实体管理工厂的配置 -->
<bean
id=
"entityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"packagesToScan"
value=
"common.model"
>
</property>
<property
name=
"persistenceUnitName"
value=
"defaultUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"officeEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"officeDataSource"
/>
<property
name=
"packagesToScan"
value=
"office.model"
></property>
<property
name=
"persistenceUnitName"
value=
"officeUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"tkioEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"tkioDataSource"
/>
<property
name=
"packagesToScan"
value=
"tkio.model"
></property>
<property
name=
"persistenceUnitName"
value=
"tkioUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"trackEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"trackDataSource"
/>
<property
name=
"packagesToScan"
value=
"track.model"
></property>
<property
name=
"persistenceUnitName"
value=
"tkrackUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"dmpEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"dmpDataSource"
/>
<property
name=
"packagesToScan"
value=
"dmp.model"
></property>
<property
name=
"persistenceUnitName"
value=
"dmpUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<bean
id=
"ioEntityManagerFactory"
class=
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
>
<property
name=
"dataSource"
ref=
"ioDataSource"
/>
<property
name=
"packagesToScan"
value=
"userio.model"
></property>
<property
name=
"persistenceUnitName"
value=
"ioUnit"
/>
<property
name=
"jpaVendorAdapter"
ref=
"hibernateJpaVendorAdapter"
/>
<property
name=
"jpaProperties"
>
<props>
<prop
key=
"hibernate.ejb.naming_strategy"
>
org.hibernate.cfg.ImprovedNamingStrategy
</prop>
<prop
key=
"hibernate.show_sql"
>
false
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
update
</prop>
<!-- none -->
<prop
key=
"hibernate.connection.CharSet"
>
utf8
</prop>
<prop
key=
"hibernate.connection.characterEncoding"
>
utf8
</prop>
<prop
key=
"hibernate.connection.useUnicode"
>
true
</prop>
</props>
</property>
</bean>
<!--指定实现JPA的适配器 -->
<bean
id=
"hibernateJpaVendorAdapter"
class=
"org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
>
<property
name=
"databasePlatform"
value=
"org.hibernate.dialect.MySQLDialect"
/>
</bean>
<!-- Jpa 事务配置 -->
<bean
id=
"transactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"entityManagerFactory"
/>
</bean>
<bean
id=
"officeTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"officeEntityManagerFactory"
/>
</bean>
<bean
id=
"tkioTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"tkioEntityManagerFactory"
/>
</bean>
<bean
id=
"trackTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"trackEntityManagerFactory"
/>
</bean>
<bean
id=
"dmpTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"dmpEntityManagerFactory"
/>
</bean>
<bean
id=
"ioTransactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
>
<property
name=
"entityManagerFactory"
ref=
"ioEntityManagerFactory"
/>
</bean>
<!-- Spring Data Jpa配置 -->
<jpa:repositories
base-package=
"common.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"transactionManager"
entity-manager-factory-ref=
"entityManagerFactory"
/>
<jpa:repositories
base-package=
"office.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"officeTransactionManager"
entity-manager-factory-ref=
"officeEntityManagerFactory"
/>
<jpa:repositories
base-package=
"tkio.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"tkioTransactionManager"
entity-manager-factory-ref=
"tkioEntityManagerFactory"
/>
<jpa:repositories
base-package=
"track.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"trackTransactionManager"
entity-manager-factory-ref=
"trackEntityManagerFactory"
/>
<jpa:repositories
base-package=
"dmp.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"dmpTransactionManager"
entity-manager-factory-ref=
"dmpEntityManagerFactory"
/>
<jpa:repositories
base-package=
"userio.repository"
repository-impl-postfix=
"Impl"
transaction-manager-ref=
"ioTransactionManager"
entity-manager-factory-ref=
"ioEntityManagerFactory"
/>
<!-- 使用annotation定义事务 -->
<tx:annotation-driven
transaction-manager=
"transactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"officeTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"tkioTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"trackTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"dmpTransactionManager"
proxy-target-class=
"true"
/>
<tx:annotation-driven
transaction-manager=
"ioTransactionManager"
proxy-target-class=
"true"
/>
<tx:advice
id=
"txAdvice"
transaction-manager=
"transactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"officeTxAdvice"
transaction-manager=
"officeTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"tkioTxAdvice"
transaction-manager=
"tkioTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"trackTxAdvice"
transaction-manager=
"trackTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"dmpTxAdvice"
transaction-manager=
"dmpTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<tx:advice
id=
"ioTxAdvice"
transaction-manager=
"ioTransactionManager"
>
<tx:attributes>
<tx:method
name=
"report*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"list*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"query*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"find*"
propagation=
"SUPPORTS"
read-only=
"true"
/>
<tx:method
name=
"*"
propagation=
"REQUIRED"
/>
</tx:attributes>
</tx:advice>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"txPointcut"
expression=
"execution(* common.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"txAdvice"
pointcut-ref=
"txPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"officetxPointcut"
expression=
"execution(* office.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"officeTxAdvice"
pointcut-ref=
"officetxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"tkiotxPointcut"
expression=
"execution(* tkio.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"tkioTxAdvice"
pointcut-ref=
"tkiotxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"tracktxPointcut"
expression=
"execution(* track.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"trackTxAdvice"
pointcut-ref=
"tracktxPointcut"
/>
</aop:config>
<aop:config
expose-proxy=
"true"
>
<aop:pointcut
id=
"iotxPointcut"
expression=
"execution(* userio.service.*.*(..))"
/>
<aop:advisor
advice-ref=
"ioTxAdvice"
pointcut-ref=
"iotxPointcut"
/>
</aop:config>
<!-- SpringMVC上传文件时,需要配置MultipartResolver处理器 -->
<bean
id=
"multipartResolver"
class=
"org.springframework.web.multipart.commons.CommonsMultipartResolver"
>
...
...
@@ -337,5 +338,5 @@
<property
name=
"maxUploadSize"
value=
"2000000"
/>
</bean>
<bean
id=
"appUtils"
class=
"common.context.AppUtils"
lazy-init=
"false"
/>
<bean
id=
"appUtils"
class=
"common.context.AppUtils"
lazy-init=
"false"
/>
</beans>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment