Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-adapter
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
黄营
data-adapter
Commits
f8055e3b
Commit
f8055e3b
authored
Feb 23, 2024
by
hy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrate into nacos
parent
854984e6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
2 deletions
+49
-2
.gitignore
.gitignore
+3
-2
pom.xml
dataadapter-console/pom.xml
+10
-0
DataAdapterConsoleApplication.java
...yf/dataadapter/console/DataAdapterConsoleApplication.java
+2
-0
application.yml
dataadapter-console/src/main/resources/application.yml
+16
-0
pom.xml
pom.xml
+18
-0
No files found.
.gitignore
View file @
f8055e3b
...
...
@@ -37,4 +37,5 @@ build/
### Mac OS ###
.DS_Store
.idea/
\ No newline at end of file
.idea/
*.jar
\ No newline at end of file
dataadapter-console/pom.xml
View file @
f8055e3b
...
...
@@ -32,6 +32,16 @@
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<!--注册中心客户端-->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
</dependency>
<!--配置中心客户端-->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId>
</dependency>
</dependencies>
...
...
dataadapter-console/src/main/java/com/tbyf/dataadapter/console/DataAdapterConsoleApplication.java
View file @
f8055e3b
...
...
@@ -2,7 +2,9 @@ package com.tbyf.dataadapter.console;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
@EnableDiscoveryClient
@SpringBootApplication
public
class
DataAdapterConsoleApplication
{
...
...
dataadapter-console/src/main/resources/application.yml
View file @
f8055e3b
spring
:
application
:
name
:
dataadapter-console
cloud
:
nacos
:
server-addr
:
${NACOS_HOST:192.168.0.72}:${NACOS_PORT:8848}
username
:
${NACOS_USER:nacos}
password
:
${NACOS_PWD:nacos}
config
:
namespace
:
hip
discovery
:
namespace
:
hip
metadata
:
version
:
${SERVICE_VERSION:1.0.0}
config
:
import
:
-
nacos:dataadapter-console-dev.yml?refresh=true
servlet
:
multipart
:
max-request-size
:
100MB
...
...
pom.xml
View file @
f8055e3b
...
...
@@ -20,6 +20,8 @@
<maven.compiler.target>
8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<spring-boot.version>
2.7.14
</spring-boot.version>
<spring-cloud-alibaba.version>
2021.0.4.0
</spring-cloud-alibaba.version>
<spring-cloud.verison>
2021.0.5
</spring-cloud.verison>
</properties>
<dependencyManagement>
...
...
@@ -31,6 +33,22 @@
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-alibaba-dependencies
</artifactId>
<version>
${spring-cloud-alibaba.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
${spring-cloud.verison}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
...
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