Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-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
赵啸非
device-new-platform
Commits
8fd69831
Commit
8fd69831
authored
Feb 26, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精简pom.xml
parent
8b8adc0c
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
680 additions
and
249 deletions
+680
-249
device-manager/pom.xml
device-manager/pom.xml
+12
-203
device-manager/pom.xml.bak
device-manager/pom.xml.bak
+548
-0
device-manager/src/main/bin/deploy.sh
device-manager/src/main/bin/deploy.sh
+1
-1
device-manager/src/main/resources/application.yml
device-manager/src/main/resources/application.yml
+2
-2
device-manager/src/main/resources/bootstrap.yml
device-manager/src/main/resources/bootstrap.yml
+2
-43
device-manager/src/main/resources/bootstrap.yml.bak
device-manager/src/main/resources/bootstrap.yml.bak
+115
-0
No files found.
device-manager/pom.xml
View file @
8fd69831
This diff is collapsed.
Click to expand it.
device-manager/pom.xml.bak
0 → 100644
View file @
8fd69831
This diff is collapsed.
Click to expand it.
device-manager/src/main/bin/deploy.sh
View file @
8fd69831
...
@@ -14,7 +14,7 @@ SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log"
...
@@ -14,7 +14,7 @@ SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log"
JAVA_HOME
=
"/usr/local/java/jdk1.8"
JAVA_HOME
=
"/usr/local/java/jdk1.8"
SERVICE_PATH
=
"/usr/lib/systemd/system"
SERVICE_PATH
=
"/usr/lib/systemd/system"
PUBLISH_PATH
=
"
@profiles.publish.path@
"
PUBLISH_PATH
=
"
/home/publish
"
PROJECT_NAME
=
"@project.artifactId@"
PROJECT_NAME
=
"@project.artifactId@"
PROJECT_EXECPATH
=
"
${
PUBLISH_PATH
}
/
${
PROJECT_NAME
}
"
PROJECT_EXECPATH
=
"
${
PUBLISH_PATH
}
/
${
PROJECT_NAME
}
"
...
...
device-manager/src/main/resources/application.yml
View file @
8fd69831
...
@@ -3,7 +3,7 @@ spring:
...
@@ -3,7 +3,7 @@ spring:
allow-bean-definition-overriding
:
true
allow-bean-definition-overriding
:
true
application
:
application
:
log
:
log
:
level
:
@
profiles.log.level@
level
:
info
path
:
@
profiles.log.path@
path
:
/home/mortals/app/logs
device-manager/src/main/resources/bootstrap.yml
View file @
8fd69831
platform
:
platform
:
# type: standalone
# type: standalone
type
:
@
profiles.platform.type@
type
:
cloud
server
:
server
:
port
:
@
profiles.server.port@
port
:
18222
servlet
:
servlet
:
context-path
:
/m
context-path
:
/m
spring
:
spring
:
...
@@ -20,22 +20,6 @@ spring:
...
@@ -20,22 +20,6 @@ spring:
default-property-inclusion
:
NON_NULL
default-property-inclusion
:
NON_NULL
# time-zone: GMT+8
# time-zone: GMT+8
# date-format: yyyy-MM-dd HH:mm:ss
# date-format: yyyy-MM-dd HH:mm:ss
redis
:
host
:
@
profiles.redis.uri@
port
:
@
profiles.redis.port@
username
:
@
profiles.redis.username@
password
:
@
profiles.redis.password@
database
:
@
profiles.redis.database@
timeout
:
30000
lettuce
:
pool
:
max-idle
:
50
min-idle
:
20
max-active
:
100
max-wait
:
5000
# sentinel:
# master: mymaster
# nodes: @profiles.redis.sentinel@
cloud
:
cloud
:
loadbalancer
:
loadbalancer
:
ribbon
:
ribbon
:
...
@@ -51,33 +35,14 @@ spring:
...
@@ -51,33 +35,14 @@ spring:
group
:
${spring.cloud.nacos.discovery.group}
group
:
${spring.cloud.nacos.discovery.group}
namespace
:
${spring.cloud.nacos.discovery.namespace}
# Nacos 命名空间 dev 的编号
namespace
:
${spring.cloud.nacos.discovery.namespace}
# Nacos 命名空间 dev 的编号
file-extension
:
yaml
file-extension
:
yaml
rabbitmq
:
host
:
@
profiles.rabbitmq.host@
port
:
@
profiles.rabbitmq.port@
username
:
@
profiles.rabbitmq.username@
password
:
@
profiles.rabbitmq.password@
exchange-name
:
@
profiles.rabbitmq.exchange@
virtual-host
:
@
profiles.rabbitmq.virtualhost@
publisher-returns
:
true
publisher-confirm-type
:
correlated
dao
:
dao
:
exceptiontranslation
:
exceptiontranslation
:
enabled
:
false
enabled
:
false
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
#type: com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
@
profiles.datasource.uri@
username
:
@
profiles.datasource.username@
password
:
@
profiles.datasource.password@
mybatis
:
mybatis
:
root-path
:
com.mortals
root-path
:
com.mortals
type-aliases-package
:
com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model
type-aliases-package
:
com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model
mapper-locations
:
classpath*:sqlmap/**/*.xml
mapper-locations
:
classpath*:sqlmap/**/*.xml
config-location
:
classpath*:config/mybatis-sqlmap-config.xml
config-location
:
classpath*:config/mybatis-sqlmap-config.xml
log
:
enable
:
true
application
:
application
:
auth
:
auth
:
...
@@ -87,15 +52,9 @@ application:
...
@@ -87,15 +52,9 @@ application:
deviceInitApiPath
:
/api/deviceInit
deviceInitApiPath
:
/api/deviceInit
deviceUpdateApiPath
:
/api/deviceUpdate
deviceUpdateApiPath
:
/api/deviceUpdate
upload
:
path
:
@
profiles.filepath@
#feign:
#feign:
# hystrix:
# hystrix:
# enabled: false
# enabled: false
sms
:
smsSendUrl
:
@
profiles.sms.smsSendUrl@
apiId
:
@
profiles.sms.apiId@
type
:
@
profiles.sms.type@
management
:
management
:
security
:
security
:
enabled
:
false
enabled
:
false
...
...
device-manager/src/main/resources/bootstrap.yml.bak
0 → 100644
View file @
8fd69831
platform:
# type: standalone
type: @profiles.platform.type@
server:
port: @profiles.server.port@
servlet:
context-path: /m
spring:
application:
name: device-manager
profiles:
active: @profiles.active@
servlet:
multipart:
max-file-size: 100MB
max-request-size: 1000MB
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: true
default-property-inclusion: NON_NULL
# time-zone: GMT+8
# date-format: yyyy-MM-dd HH:mm:ss
redis:
host: @profiles.redis.uri@
port: @profiles.redis.port@
username: @profiles.redis.username@
password: @profiles.redis.password@
database: @profiles.redis.database@
timeout: 30000
lettuce:
pool:
max-idle: 50
min-idle: 20
max-active: 100
max-wait: 5000
# sentinel:
# master: mymaster
# nodes: @profiles.redis.sentinel@
cloud:
loadbalancer:
ribbon:
enabled: false
nacos:
# Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
discovery:
server-addr: @profiles.nacos.server-addr@ # Nacos 服务器地址
group: @profiles.nacos.group@
namespace: @profiles.nacos.namespace@
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr} # Nacos 服务器地址
group: ${spring.cloud.nacos.discovery.group}
namespace: ${spring.cloud.nacos.discovery.namespace} # Nacos 命名空间 dev 的编号
file-extension: yaml
rabbitmq:
host: @profiles.rabbitmq.host@
port: @profiles.rabbitmq.port@
username: @profiles.rabbitmq.username@
password: @profiles.rabbitmq.password@
exchange-name: @profiles.rabbitmq.exchange@
virtual-host: @profiles.rabbitmq.virtualhost@
publisher-returns: true
publisher-confirm-type: correlated
dao:
exceptiontranslation:
enabled: false
datasource:
type: com.alibaba.druid.pool.DruidDataSource
#type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: @profiles.datasource.uri@
username: @profiles.datasource.username@
password: @profiles.datasource.password@
mybatis:
root-path: com.mortals
type-aliases-package: com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model
mapper-locations: classpath*:sqlmap/**/*.xml
config-location: classpath*:config/mybatis-sqlmap-config.xml
log:
enable: true
application:
auth:
unloginUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*
uncheckUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*
registerApiPath: /api/register
deviceInitApiPath: /api/deviceInit
deviceUpdateApiPath: /api/deviceUpdate
upload:
path: @profiles.filepath@
#feign:
# hystrix:
# enabled: false
sms:
smsSendUrl: @profiles.sms.smsSendUrl@
apiId: @profiles.sms.apiId@
type: @profiles.sms.type@
management:
security:
enabled: false
#prometheus+grafana+springboot2监控集成配置
metrics:
export:
prometheus:
enabled: true
jmx:
enabled: true
endpoints:
web:
exposure:
include: '*'
base-path: /metrics
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