Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
8071315a
Commit
8071315a
authored
Nov 28, 2023
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(能源管理系统): 修改架构
1.修改架构添加nacos BREAKING CHANGE: 无 Closes 无 [skip ci]
parent
738659ba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
26 deletions
+16
-26
D03-deploy/deploy-pps-gateway/src/main/resources/application.yaml
...oy/deploy-pps-gateway/src/main/resources/application.yaml
+6
-0
D03-deploy/deploy-pps-space/pom.xml
D03-deploy/deploy-pps-space/pom.xml
+1
-15
D03-deploy/deploy-pps-space/src/main/java/app/DeployPpsSpaceApplication.java
...ps-space/src/main/java/app/DeployPpsSpaceApplication.java
+9
-11
No files found.
D03-deploy/deploy-pps-gateway/src/main/resources/application.yaml
View file @
8071315a
...
@@ -120,4 +120,10 @@ spring:
...
@@ -120,4 +120,10 @@ spring:
-
name
:
governance
-
name
:
governance
predicates
:
predicates
:
-
Path=/api/pps/ukey/**
-
Path=/api/pps/ukey/**
-
id
:
pps-prediction
uri
:
lb://pps-prediction
filters
:
-
name
:
governance
predicates
:
-
Path=/api/pps/prediction/**
D03-deploy/deploy-pps-space/pom.xml
View file @
8071315a
...
@@ -35,23 +35,9 @@
...
@@ -35,23 +35,9 @@
<groupId>
xstartup
</groupId>
<groupId>
xstartup
</groupId>
<artifactId>
xstartup-feature-mybatis
</artifactId>
<artifactId>
xstartup-feature-mybatis
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
huawei-gauss-db
</groupId>
<artifactId>
huawei-gauss-db
</artifactId>
<version>
1.0
</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>pps</groupId>-->
<!-- <artifactId>pps-core-framedata</artifactId>-->
<!-- <version>${pps.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
xstartup
</groupId>
<artifactId>
xstartup-toolkit-kafka
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
xstartup-cloud
</groupId>
<groupId>
xstartup-cloud
</groupId>
<artifactId>
xstartup-cloud-feature-
huawei-cse
</artifactId>
<artifactId>
xstartup-cloud-feature-
alibaba
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.validation
</groupId>
<groupId>
javax.validation
</groupId>
...
...
D03-deploy/deploy-pps-space/src/main/java/app/DeployPpsSpaceApplication.java
View file @
8071315a
package
app
;
package
app
;
//import pps.core.common.job.CounterJob;
import
pps.core.common.utils.CounterBuilder
;
import
pps.core.common.utils.CounterBuilder
;
import
xstartup.base.XStartup
;
import
xstartup.base.XStartup
;
import
xstartup.base.conf.XServerConf
;
import
xstartup.base.conf.XServerConf
;
...
@@ -8,7 +7,7 @@ import xstartup.base.conf.XServiceConf;
...
@@ -8,7 +7,7 @@ import xstartup.base.conf.XServiceConf;
import
xstartup.boot.XStartupApplication
;
import
xstartup.boot.XStartupApplication
;
import
xstartup.feature.api.XApiFeature
;
import
xstartup.feature.api.XApiFeature
;
import
xstartup.feature.api.conf.XApiCookieConf
;
import
xstartup.feature.api.conf.XApiCookieConf
;
import
xstartup.feature.cloud.XCloud
HuaweiCse
Feature
;
import
xstartup.feature.cloud.XCloud
Alibaba
Feature
;
import
xstartup.feature.cloud.conf.XCloudBundle
;
import
xstartup.feature.cloud.conf.XCloudBundle
;
import
xstartup.feature.cloud.conf.XCloudBundlesConf
;
import
xstartup.feature.cloud.conf.XCloudBundlesConf
;
import
xstartup.feature.mybatis.XMybatisFeature
;
import
xstartup.feature.mybatis.XMybatisFeature
;
...
@@ -17,23 +16,22 @@ import xstartup.feature.swagger.XSwaggerFeature;
...
@@ -17,23 +16,22 @@ import xstartup.feature.swagger.XSwaggerFeature;
public
class
DeployPpsSpaceApplication
{
public
class
DeployPpsSpaceApplication
{
public
static
void
main
(
String
...
args
)
{
public
static
void
main
(
String
...
args
)
{
System
.
out
.
println
(
"println--DeployPpsSpaceApplication"
);
CounterBuilder
.
globalCounterBuilder
.
setFieldValue
(
CounterBuilder
.
DEPLOY_KEY
,
DeployPpsSpaceApplication
.
class
.
getSimpleName
());
CounterBuilder
.
globalCounterBuilder
.
setFieldValue
(
CounterBuilder
.
DEPLOY_KEY
,
DeployPpsSpaceApplication
.
class
.
getSimpleName
());
XStartup
startup
=
new
XStartupApplication
(
"pps"
);
XStartup
startup
=
new
XStartupApplication
(
"pps"
);
startup
.
config
(
new
XServerConf
(
22061
).
naming
(
"pps-base-info"
))
startup
.
config
(
new
XServerConf
(
22061
).
naming
(
"pps-base-info"
))
.
config
(
new
XServiceConf
(
"pps"
));
.
config
(
new
XServiceConf
(
"pps"
));
startup
.
enable
(
XApiFeature
.
class
)
startup
.
enable
(
XApiFeature
.
class
)
.
config
(
new
XApiCookieConf
(
"%4bH8s9&"
,
43200
));
.
config
(
new
XApiCookieConf
(
"%4bH8s9&"
,
43200
));
startup
.
enable
(
XSwaggerFeature
.
class
);
startup
.
enable
(
XSwaggerFeature
.
class
);
// startup.enable(XJobFeature.class).config(new XJobServiceConf(CounterJob.class));
startup
.
enable
(
XMybatisFeature
.
class
);
startup
.
enable
(
XMybatisFeature
.
class
);
startup
.
enable
(
XRpcFeature
.
class
);
startup
.
enable
(
XRpcFeature
.
class
);
startup
.
enable
(
XCloud
HuaweiCse
Feature
.
class
)
startup
.
enable
(
XCloud
Alibaba
Feature
.
class
)
.
config
(
XCloudBundlesConf
.
with
(
.
config
(
XCloudBundlesConf
.
with
(
XCloudBundle
.
naming
(
"pps-base-info"
).
addModule
(
"pps"
,
"cloud"
,
"base"
),
XCloudBundle
.
naming
(
"pps-base-info"
).
addModule
(
"pps"
,
"cloud"
,
"base"
),
XCloudBundle
.
naming
(
"pps-base-info"
).
addModule
(
"pps"
,
"cloud"
,
"system"
))
XCloudBundle
.
naming
(
"pps-base-info"
).
addModule
(
"pps"
,
"cloud"
,
"system"
),
XCloudBundle
.
naming
(
"pps-prediction"
).
addModule
(
"pps"
,
"cloud"
,
"prediction"
)
)
);
);
startup
.
run
(
args
);
startup
.
run
(
args
);
}
}
}
}
\ 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