Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
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
赵啸非
smart_gov_platform
Commits
e6fda093
Commit
e6fda093
authored
Oct 22, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加初始化数据库脚本
parent
d2dc30ff
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
176 additions
and
13 deletions
+176
-13
base-manager/assembly/assembly.xml
base-manager/assembly/assembly.xml
+27
-0
base-manager/pom.xml
base-manager/pom.xml
+28
-0
base-manager/src/main/bin/start.sh
base-manager/src/main/bin/start.sh
+3
-3
common-lib/src/main/java/com/mortals/xhx/system/MessageProducer.java
...src/main/java/com/mortals/xhx/system/MessageProducer.java
+2
-1
portal-manager/assembly/assembly.xml
portal-manager/assembly/assembly.xml
+27
-0
portal-manager/pom.xml
portal-manager/pom.xml
+29
-1
portal-manager/src/main/bin/start.sh
portal-manager/src/main/bin/start.sh
+3
-3
smart-gateway/assembly/assembly.xml
smart-gateway/assembly/assembly.xml
+27
-0
smart-gateway/pom.xml
smart-gateway/pom.xml
+27
-0
smart-gateway/src/main/bin/start.sh
smart-gateway/src/main/bin/start.sh
+3
-3
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
...om/mortals/xhx/base/framework/filter/AccessLogFilter.java
+0
-2
No files found.
base-manager/assembly/assembly.xml
0 → 100644
View file @
e6fda093
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"
>
<id>
release
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<fileSets>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/boot
</directory>
<outputDirectory>
boot
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/db
</directory>
<outputDirectory>
db
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
base-manager/pom.xml
View file @
e6fda093
...
...
@@ -38,6 +38,7 @@
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.level>
DEBUG
</profiles.log.level>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
...
...
@@ -57,6 +58,7 @@
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.level>
DEBUG
</profiles.log.level>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
...
...
@@ -76,6 +78,7 @@
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.level>
DEBUG
</profiles.log.level>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
</profiles>
...
...
@@ -251,6 +254,31 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
3.3.0
</version>
<configuration>
<skipAssembly>
${skipDeploy}
</skipAssembly>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<finalName>
smart-base-platform
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
./assembly/assembly.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/smart-base-platform
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
...
base-manager/src/main/bin/start.sh
View file @
e6fda093
...
...
@@ -5,9 +5,9 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
GC_PATH
=
$LOG_PATH
/
$PORT
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
$PORT
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$PORT
"-heap_dump.hprof"
GC_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-heap_dump.hprof"
TEMP_PATH
=
$LOG_PATH
/temp/
SUCCESS
=
0
FAIL
=
9
...
...
common-lib/src/main/java/com/mortals/xhx/system/MessageProducer.java
View file @
e6fda093
...
...
@@ -22,7 +22,8 @@ public class MessageProducer implements IMessageProduceService {
private
RabbitTemplate
rabbitTemplate
;
public
void
syncAccessSend
(
AccessLogPdu
accessLogPdu
)
{
rabbitTemplate
.
convertAndSend
(
QueueKey
.
EXCHANGE
,
QueueKey
.
ACCESS_LOG_QUEUE
,
JSON
.
toJSONString
(
accessLogPdu
));
//rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, JSON.toJSONString(accessLogPdu));
rabbitTemplate
.
convertAndSend
(
QueueKey
.
EXCHANGE
,
QueueKey
.
ACCESS_LOG_QUEUE
,
accessLogPdu
);
}
@Override
...
...
portal-manager/assembly/assembly.xml
0 → 100644
View file @
e6fda093
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"
>
<id>
release
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<fileSets>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/boot
</directory>
<outputDirectory>
boot
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/db
</directory>
<outputDirectory>
db
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
portal-manager/pom.xml
View file @
e6fda093
...
...
@@ -33,6 +33,7 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
...
...
@@ -51,12 +52,13 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
<id>
product
</id>
<properties>
<profiles.active>
tes
t
</profiles.active>
<profiles.active>
produc
t
</profiles.active>
<profiles.server.port>
17212
</profiles.server.port>
<profiles.queue.type>
rabbitmq
</profiles.queue.type>
<profiles.kafka.brokers>
192.168.0.251:9092
</profiles.kafka.brokers>
...
...
@@ -69,6 +71,7 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
</profiles>
...
...
@@ -223,6 +226,31 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
3.3.0
</version>
<configuration>
<skipAssembly>
${skipDeploy}
</skipAssembly>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<finalName>
smart-portal-platform
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
./assembly/assembly.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/smart-portal-platform
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
...
portal-manager/src/main/bin/start.sh
View file @
e6fda093
...
...
@@ -5,9 +5,9 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
GC_PATH
=
$LOG_PATH
/
$PORT
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
$PORT
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$PORT
"-heap_dump.hprof"
GC_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-heap_dump.hprof"
TEMP_PATH
=
$LOG_PATH
/temp/
SUCCESS
=
0
FAIL
=
9
...
...
smart-gateway/assembly/assembly.xml
0 → 100644
View file @
e6fda093
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"
>
<id>
release
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<fileSets>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/boot
</directory>
<outputDirectory>
boot
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.basedir}/dist/${project.artifactId}/db
</directory>
<outputDirectory>
db
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
smart-gateway/pom.xml
View file @
e6fda093
...
...
@@ -34,6 +34,7 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
...
...
@@ -52,6 +53,7 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
true
</skipDeploy>
</properties>
</profile>
<profile>
...
...
@@ -68,6 +70,7 @@
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<skipDeploy>
false
</skipDeploy>
</properties>
</profile>
</profiles>
...
...
@@ -189,6 +192,30 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
3.3.0
</version>
<configuration>
<skipAssembly>
${skipDeploy}
</skipAssembly>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<finalName>
smart-gateway
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
./assembly/assembly.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/smart-gateway
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
smart-gateway/src/main/bin/start.sh
View file @
e6fda093
...
...
@@ -5,9 +5,9 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
GC_PATH
=
$LOG_PATH
/
$PORT
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
$PORT
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$PORT
"-heap_dump.hprof"
GC_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-heap_dump.hprof"
TEMP_PATH
=
$LOG_PATH
/temp/
SUCCESS
=
0
FAIL
=
9
...
...
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
View file @
e6fda093
...
...
@@ -129,10 +129,8 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
builder
.
append
(
entry
.
getKey
()).
append
(
"="
).
append
(
StringUtils
.
join
(
entry
.
getValue
(),
","
));
}
accessLog
.
setRequestData
(
builder
.
toString
());
//获取响应体
ServerHttpResponseDecorator
decoratedResponse
=
recordResponseLog
(
exchange
,
accessLog
);
return
chain
.
filter
(
exchange
.
mutate
().
response
(
decoratedResponse
).
build
())
.
then
(
Mono
.
fromRunnable
(()
->
{
// 打印日志 发送
...
...
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