Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
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
黄营
datax-cloud
Commits
3cd3df31
Commit
3cd3df31
authored
Oct 30, 2019
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
242d5784
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
136 additions
and
0 deletions
+136
-0
pom.xml
datax-modules/file-service-parent/file-service-api/pom.xml
+23
-0
pom.xml
datax-modules/file-service-parent/file-service/pom.xml
+47
-0
DataxFileApplication.java
...main/java/cn/datax/service/file/DataxFileApplication.java
+15
-0
LogController.java
.../java/cn/datax/service/file/controller/LogController.java
+16
-0
bootstrap.yml
...vice-parent/file-service/src/main/resources/bootstrap.yml
+30
-0
pom.xml
datax-modules/file-service-parent/pom.xml
+5
-0
No files found.
datax-modules/file-service-parent/file-service-api/pom.xml
0 → 100644
View file @
3cd3df31
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
file-service-parent
</artifactId>
<groupId>
cn.datax
</groupId>
<version>
1.0.0
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
file-service-api
</artifactId>
<dependencies>
<dependency>
<groupId>
cn.datax
</groupId>
<artifactId>
datax-common-core
</artifactId>
<version>
${app.version}
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
datax-modules/file-service-parent/file-service/pom.xml
0 → 100644
View file @
3cd3df31
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
file-service-parent
</artifactId>
<groupId>
cn.datax
</groupId>
<version>
1.0.0
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
file-service
</artifactId>
<dependencies>
<!--配置中心客户端 -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-config
</artifactId>
</dependency>
<!--web 模块-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
cn.datax
</groupId>
<artifactId>
file-service-api
</artifactId>
<version>
${app.version}
</version>
</dependency>
<dependency>
<groupId>
cn.datax
</groupId>
<artifactId>
datax-common-log
</artifactId>
<version>
${app.version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
datax-modules/file-service-parent/file-service/src/main/java/cn/datax/service/file/DataxFileApplication.java
0 → 100644
View file @
3cd3df31
package
cn
.
datax
.
service
.
file
;
import
cn.datax.common.log.annotation.EnableDataLog
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@EnableDataLog
@SpringBootApplication
public
class
DataxFileApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DataxFileApplication
.
class
);
}
}
datax-modules/file-service-parent/file-service/src/main/java/cn/datax/service/file/controller/LogController.java
0 → 100644
View file @
3cd3df31
package
cn
.
datax
.
service
.
file
.
controller
;
import
cn.datax.common.core.R
;
import
cn.datax.common.log.annotation.LogAop
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
public
class
LogController
{
@LogAop
(
module
=
"file"
,
value
=
"testCESHI"
)
@GetMapping
(
"/log"
)
public
R
get
()
{
return
R
.
ok
();
}
}
datax-modules/file-service-parent/file-service/src/main/resources/bootstrap.yml
0 → 100644
View file @
3cd3df31
server
:
port
:
8811
spring
:
application
:
name
:
datax-service-file
profiles
:
active
:
dev
cloud
:
config
:
fail-fast
:
true
uri
:
http://localhost:8611
name
:
${spring.application.name}
profile
:
${spring.profiles.active}
discovery
:
enabled
:
true
service-id
:
datax-config
# 注册中心配置
eureka
:
instance
:
lease-renewal-interval-in-seconds
:
20
client
:
register-with-eureka
:
true
fetch-registry
:
true
instance-info-replication-interval-seconds
:
30
registry-fetch-interval-seconds
:
3
service-url
:
defaultZone
:
http://localhost:8610/eureka
\ No newline at end of file
datax-modules/file-service-parent/pom.xml
View file @
3cd3df31
...
@@ -12,5 +12,9 @@
...
@@ -12,5 +12,9 @@
<artifactId>
file-service-parent
</artifactId>
<artifactId>
file-service-parent
</artifactId>
<modules>
<module>
file-service
</module>
<module>
file-service-api
</module>
</modules>
</project>
</project>
\ No newline at end of file
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