Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-rt-dc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
qg-rt-dc
Commits
cdd119f0
Commit
cdd119f0
authored
Jun 03, 2019
by
data爬虫-冯 军凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库连接配置
parent
54533519
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
170 additions
and
189 deletions
+170
-189
pom.xml
pom.xml
+162
-162
QgDataDcApplication.java
...main/java/cn/quantgroup/qgdatadc/QgDataDcApplication.java
+7
-21
pom.xml
qg-data-service/pom.xml
+1
-1
QgDataServiceApplication.java
...cn/quantgroup/qgdataservice/QgDataServiceApplication.java
+0
-5
No files found.
pom.xml
View file @
cdd119f0
...
@@ -99,33 +99,33 @@
...
@@ -99,33 +99,33 @@
</dependency>
</dependency>
<!-- 添加权限 -->
<!-- 添加权限 -->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.springframework.boot
</groupId
>
<
!--<groupId>org.springframework.boot</groupId>--
>
<
artifactId>
spring-boot-starter-security
</artifactId
>
<
!--<artifactId>spring-boot-starter-security</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
swagger
-->
<!--
<!–swagger –>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
io.springfox
</groupId
>
<
!--<groupId>io.springfox</groupId>--
>
<
artifactId>
springfox-swagger2
</artifactId
>
<
!--<artifactId>springfox-swagger2</artifactId>--
>
<
version>
2.0.3
</version
>
<
!--<version>2.0.3</version>--
>
<
exclusions
>
<
!--<exclusions>--
>
<
exclusion
>
<
!--<exclusion>--
>
<
groupId>
com.fasterxml.jackson.core
</groupId
>
<
!--<groupId>com.fasterxml.jackson.core</groupId>--
>
<
artifactId>
jackson-annotations
</artifactId
>
<
!--<artifactId>jackson-annotations</artifactId>--
>
<
/exclusion
>
<
!--</exclusion>--
>
<
/exclusions
>
<
!--</exclusions>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
io.springfox
</groupId
>
<
!--<groupId>io.springfox</groupId>--
>
<
artifactId>
springfox-swagger-ui
</artifactId
>
<
!--<artifactId>springfox-swagger-ui</artifactId>--
>
<
version>
2.0.3
</version
>
<
!--<version>2.0.3</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--swagger -->
<!--swagger -->
<!--spring-->
<!--spring-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.springframework.boot
</groupId
>
<
!--<groupId>org.springframework.boot</groupId>--
>
<
artifactId>
spring-boot-starter-web
</artifactId
>
<
!--<artifactId>spring-boot-starter-web</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot
</artifactId>
<artifactId>
spring-boot
</artifactId>
...
@@ -143,15 +143,15 @@
...
@@ -143,15 +143,15 @@
<artifactId>
spring-boot-starter-test
</artifactId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
<scope>
test
</scope>
</dependency>
</dependency>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.springframework.boot
</groupId
>
<
!--<groupId>org.springframework.boot</groupId>--
>
<
artifactId>
spring-boot-starter-data-jpa
</artifactId
>
<
!--<artifactId>spring-boot-starter-data-jpa</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.mybatis.spring.boot
</groupId
>
<
!--<groupId>org.mybatis.spring.boot</groupId>--
>
<
artifactId>
mybatis-spring-boot-starter
</artifactId
>
<
!--<artifactId>mybatis-spring-boot-starter</artifactId>--
>
<
version>
1.1.1
</version
>
<
!--<version>1.1.1</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<dependency>
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper
</artifactId>
<artifactId>
pagehelper
</artifactId>
...
@@ -203,11 +203,11 @@
...
@@ -203,11 +203,11 @@
<version>
${mysql.version}
</version>
<version>
${mysql.version}
</version>
</dependency>
</dependency>
<!-- mybatis 生成器-->
<!-- mybatis 生成器-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.mybatis.generator
</groupId
>
<
!--<groupId>org.mybatis.generator</groupId>--
>
<
artifactId>
mybatis-generator-core
</artifactId
>
<
!--<artifactId>mybatis-generator-core</artifactId>--
>
<
version>
1.3.5
</version
>
<
!--<version>1.3.5</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--json -->
<!--json -->
<dependency>
<dependency>
...
@@ -228,63 +228,63 @@
...
@@ -228,63 +228,63 @@
<version>
2.6
</version>
<version>
2.6
</version>
</dependency>
</dependency>
<!--
ok http
-->
<!--
<!–ok http –>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.squareup.okhttp3
</groupId
>
<
!--<groupId>com.squareup.okhttp3</groupId>--
>
<
artifactId>
okhttp
</artifactId
>
<
!--<artifactId>okhttp</artifactId>--
>
<
version>
${okhttp.version}
</version
>
<
!--<version>${okhttp.version}</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.squareup.okhttp3
</groupId
>
<
!--<groupId>com.squareup.okhttp3</groupId>--
>
<
artifactId>
logging-interceptor
</artifactId
>
<
!--<artifactId>logging-interceptor</artifactId>--
>
<
version>
${okhttp.version}
</version
>
<
!--<version>${okhttp.version}</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--retrofit -->
<!--retrofit -->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.squareup.retrofit2
</groupId
>
<
!--<groupId>com.squareup.retrofit2</groupId>--
>
<
artifactId>
retrofit
</artifactId
>
<
!--<artifactId>retrofit</artifactId>--
>
<
version>
${retrofit.version}
</version
>
<
!--<version>${retrofit.version}</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.squareup.retrofit2
</groupId
>
<
!--<groupId>com.squareup.retrofit2</groupId>--
>
<
artifactId>
adapter-rxjava
</artifactId
>
<
!--<artifactId>adapter-rxjava</artifactId>--
>
<
version>
${retrofit.version}
</version
>
<
!--<version>${retrofit.version}</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.squareup.retrofit2
</groupId
>
<
!--<groupId>com.squareup.retrofit2</groupId>--
>
<
artifactId>
converter-simplexml
</artifactId
>
<
!--<artifactId>converter-simplexml</artifactId>--
>
<
version>
${retrofit.version}
</version
>
<
!--<version>${retrofit.version}</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
kafka
-->
<!--
<!– kafka –>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
org.springframework.kafka
</groupId
>
<
!--<groupId>org.springframework.kafka</groupId>--
>
<
artifactId>
spring-kafka
</artifactId
>
<
!--<artifactId>spring-kafka</artifactId>--
>
<
version>
1.2.1.RELEASE
</version
>
<
!--<version>1.2.1.RELEASE</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
net.logstash.logback
</groupId
>
<
!--<groupId>net.logstash.logback</groupId>--
>
<
artifactId>
logstash-logback-encoder
</artifactId
>
<
!--<artifactId>logstash-logback-encoder</artifactId>--
>
<
version>
4.9
</version
>
<
!--<version>4.9</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.ctrip.framework.apollo
</groupId
>
<
!--<groupId>com.ctrip.framework.apollo</groupId>--
>
<
artifactId>
apollo-client
</artifactId
>
<
!--<artifactId>apollo-client</artifactId>--
>
<
version>
0.10.2
</version
>
<
!--<version>0.10.2</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
quantgroup-user-sdk
</artifactId
>
<
!--<artifactId>quantgroup-user-sdk</artifactId>--
>
<
version>
1.0.13-release
</version
>
<
!--<version>1.0.13-release</version>--
>
<
exclusions
>
<
!--<exclusions>--
>
<
exclusion
>
<
!--<exclusion>--
>
<
groupId>
org.slf4j
</groupId
>
<
!--<groupId>org.slf4j</groupId>--
>
<
artifactId>
slf4j-log4j12
</artifactId
>
<
!--<artifactId>slf4j-log4j12</artifactId>--
>
<
/exclusion
>
<
!--</exclusion>--
>
<
/exclusions
>
<
!--</exclusions>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--<dependency>-->
<!--<dependency>-->
<!--<groupId>com.github.tobato</groupId>-->
<!--<groupId>com.github.tobato</groupId>-->
...
@@ -292,84 +292,84 @@
...
@@ -292,84 +292,84 @@
<!--<version>1.26.2</version>-->
<!--<version>1.26.2</version>-->
<!--</dependency>-->
<!--</dependency>-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.belerweb
</groupId
>
<
!--<groupId>com.belerweb</groupId>--
>
<
artifactId>
pinyin4j
</artifactId
>
<
!--<artifactId>pinyin4j</artifactId>--
>
<
version>
2.5.0
</version
>
<
!--<version>2.5.0</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.ibm.icu
</groupId
>
<
!--<groupId>com.ibm.icu</groupId>--
>
<
artifactId>
icu4j
</artifactId
>
<
!--<artifactId>icu4j</artifactId>--
>
<
version>
53.1
</version
>
<
!--<version>53.1</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
SpringBoot, Cloud基础的依赖
-->
<!--
<!–SpringBoot, Cloud基础的依赖–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
commons-spring
</artifactId
>
<
!--<artifactId>commons-spring</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
暂时是空的.....
-->
<!--
<!–暂时是空的.....–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
commons-core
</artifactId
>
<
!--<artifactId>commons-core</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
优雅停机, 不再强制停机
-->
<!--
<!–优雅停机, 不再强制停机–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
shutdown-spring-boot-starter
</artifactId
>
<
!--<artifactId>shutdown-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
调用链追踪. 开启吧, 以后的监控,数据统计. 都从这里出数
-->
<!--
<!–调用链追踪. 开启吧, 以后的监控,数据统计. 都从这里出数–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
brave-spring-boot-starter
</artifactId
>
<
!--<artifactId>brave-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
全局唯一的IDGenerator, 试运行阶段. 百度开发者+刘志国结合量化派场景, 倾情定制.
-->
<!--
<!–全局唯一的IDGenerator, 试运行阶段. 百度开发者+刘志国结合量化派场景, 倾情定制.–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
idgenerator-spring-boot-starter
</artifactId
>
<
!--<artifactId>idgenerator-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.dangdang
</groupId
>
<
!--<groupId>com.dangdang</groupId>--
>
<
artifactId>
elastic-job-lite-spring-shaded
</artifactId
>
<
!--<artifactId>elastic-job-lite-spring-shaded</artifactId>--
>
<
version>
2.1.5
</version
>
<
!--<version>2.1.5</version>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
SpringBoot, Cloud基础的依赖
-->
<!--
<!–SpringBoot, Cloud基础的依赖–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
commons-spring
</artifactId
>
<
!--<artifactId>commons-spring</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
暂时是空的.....
-->
<!--
<!–暂时是空的.....–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
commons-core
</artifactId
>
<
!--<artifactId>commons-core</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
优雅停机, 不再强制停机
-->
<!--
<!–优雅停机, 不再强制停机–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
shutdown-spring-boot-starter
</artifactId
>
<
!--<artifactId>shutdown-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
调用链追踪. 开启吧, 以后的监控,数据统计. 都从这里出数
-->
<!--
<!–调用链追踪. 开启吧, 以后的监控,数据统计. 都从这里出数–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
brave-spring-boot-starter
</artifactId
>
<
!--<artifactId>brave-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<!--
全局唯一的IDGenerator, 试运行阶段. 百度开发者+刘志国结合量化派场景, 倾情定制.
-->
<!--
<!–全局唯一的IDGenerator, 试运行阶段. 百度开发者+刘志国结合量化派场景, 倾情定制.–>
-->
<
dependency
>
<
!--<dependency>--
>
<
groupId>
cn.quantgroup
</groupId
>
<
!--<groupId>cn.quantgroup</groupId>--
>
<
artifactId>
idgenerator-spring-boot-starter
</artifactId
>
<
!--<artifactId>idgenerator-spring-boot-starter</artifactId>--
>
<
/dependency
>
<
!--</dependency>--
>
<
dependency
>
<
!--<dependency>--
>
<
groupId>
com.dangdang
</groupId
>
<
!--<groupId>com.dangdang</groupId>--
>
<
artifactId>
elastic-job-lite-spring-shaded
</artifactId
>
<
!--<artifactId>elastic-job-lite-spring-shaded</artifactId>--
>
<
version>
2.1.5
</version
>
<
!--<version>2.1.5</version>--
>
<
/dependency
>
<
!--</dependency>--
>
</dependencies>
</dependencies>
...
...
qg-data-dc/src/main/java/cn/quantgroup/qgdatadc/QgDataDcApplication.java
View file @
cdd119f0
package
cn
.
quantgroup
.
qgdatadc
;
package
cn
.
quantgroup
.
qgdatadc
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.domain.EntityScan
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.data.jpa.repository.config.EnableJpaRepositories
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
//@EnableJpaRepositories(basePackages = {"cn.quantgroup.qgrtdc.repository.jpa"})
//@EnableJpaRepositories(basePackages = {"cn.quantgroup.qgrtdc.repository.jpa"})
//@EntityScan(basePackages = {"cn.quantgroup.qgrtdc.repository.jpa.entity"})
//@EntityScan(basePackages = {"cn.quantgroup.qgrtdc.repository.jpa.entity"})
@EnableTransactionManagement
//
@EnableTransactionManagement
@EnableConfigurationProperties
//
@EnableConfigurationProperties
@EnableCaching
//
@EnableCaching
@EnableAsync
//
@EnableAsync
@EnableAspectJAutoProxy
//
@EnableAspectJAutoProxy
@Slf4j
@Slf4j
@EnableApolloConfig
//
@EnableApolloConfig
@SpringBootApplication
@SpringBootApplication
public
class
QgDataDcApplication
{
public
class
QgDataDcApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
JSON
.
DEFAULT_GENERATE_FEATURE
|=
SerializerFeature
.
WriteEnumUsingToString
.
getMask
();
SpringApplication
.
run
(
QgDataDcApplication
.
class
,
args
);
SpringApplication
springApplication
=
new
SpringApplication
(
QgDataDcApplication
.
class
);
springApplication
.
addInitializers
(
new
ApolloPropertySourceInitializer
());
springApplication
.
run
(
args
);
log
.
info
(
"QUANTGROUP-数据实时清洗-系统启动完成 ^_^ "
);
log
.
info
(
"QUANTGROUP-数据实时清洗-系统启动完成 ^_^ "
);
}
}
...
...
qg-data-service/pom.xml
View file @
cdd119f0
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<groupId>
cn.quantgroup
</groupId>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
qg-data-service
</artifactId>
<artifactId>
qg-data-service
</artifactId>
<version>
1.0.
0
-SNAPSHOT
</version>
<version>
1.0.
1
-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<name>
qg-data-service
</name>
<name>
qg-data-service
</name>
...
...
qg-data-service/src/main/java/cn/quantgroup/qgdataservice/QgDataServiceApplication.java
View file @
cdd119f0
package
cn
.
quantgroup
.
qgdataservice
;
package
cn
.
quantgroup
.
qgdataservice
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.annotation.EnableAspectJAutoProxy
;
import
org.springframework.scheduling.annotation.EnableAsync
;
@SpringBootApplication
@SpringBootApplication
public
class
QgDataServiceApplication
{
public
class
QgDataServiceApplication
{
...
...
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