Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dmhub-plugin
Project
Project
Details
Activity
Releases
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
qinxunjia
dmhub-plugin
Commits
d2273057
Commit
d2273057
authored
Aug 06, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本升级,jar包冲突处理
parent
59596ba2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
67 deletions
+6
-67
pom.xml
pom.xml
+2
-6
application-k8s.yml
src/main/resources/application-k8s.yml
+0
-0
application-k8sTest.yml
src/main/resources/application-k8sTest.yml
+0
-58
application.yml
src/main/resources/application.yml
+2
-2
logback-spring.xml
src/main/resources/logback-spring.xml
+2
-1
No files found.
pom.xml
View file @
d2273057
...
...
@@ -6,7 +6,7 @@
<groupId>
org.example
</groupId>
<artifactId>
sms-plugin
</artifactId>
<version>
1.0.
0
</version>
<version>
1.0.
2
</version>
<name>
插件服务
</name>
<description>
DM hub集成插件服务
</description>
...
...
@@ -68,29 +68,25 @@
<dependency>
<groupId>
net.logstash.logback
</groupId>
<artifactId>
logstash-logback-encoder
</artifactId>
<version>
3.6
</version>
<version>
5.1
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.7
</version>
</dependency>
<!-- logback -->
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
1.1.2
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-access
</artifactId>
<version>
1.1.2
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-core
</artifactId>
<version>
1.1.2
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
...
...
src/main/resources/application-
prod
.yml
→
src/main/resources/application-
k8s
.yml
View file @
d2273057
File moved
src/main/resources/application-k8sTest.yml
deleted
100644 → 0
View file @
59596ba2
# 测试k8s环境配置
server
:
tomcat
:
max-threads
:
50
port
:
${dmhub-sms-port}
spring
:
datasource
:
db1
:
jdbc-url
:
${dataSource1_url}
driverClassName
:
com.mysql.cj.jdbc.Driver
username
:
${dataSource_username}
password
:
${dataSource_password}
enabled
:
true
db2
:
jdbc-url
:
${dataSource2_url}
driverClassName
:
com.mysql.cj.jdbc.Driver
username
:
${dataSource_username}
password
:
${dataSource_password}
enabled
:
true
type
:
com.zaxxer.hikari.HikariDataSource
hikari
:
minimumIdle
:
5
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
pool-name
:
dmhub-plug-pool
redis
:
database
:
0
host
:
${redis_url}
port
:
${redis_port}
timeout
:
5000
password
:
${redis_pwd}
system
:
config
:
bgy
:
appId
:
${bgy-sms-appId}
# 系统id
securityCode
:
${bgy-sms-security}
# 鉴权码
url
:
${bgy-sms-url}
areaId
:
${bgy-sms-areaId}
api
:
SendSms
dmHub
:
applicationId
:
${plugin-dmhub-appId}
applicationKey
:
${plugin-dmhub-appKey}
baseApiURL
:
${plugin-dmhub-aip-url}
tokenUrl
:
${system.config.dmHub.baseApiURL}/security/accesstoken
report
:
${system.config.dmHub.baseApiURL}/v1/sms/report
appId
:
${smsAppId}
appSecret
:
${smsSecret}
shortUrl
:
${shortUrl}
logging
:
level
:
${logLevel}
level.com.bgy
:
${logLevel}
# 单独指定包下的日志级别
config
:
classpath:logback-spring.xml
file
:
path
:
logs.log
\ No newline at end of file
src/main/resources/application.yml
View file @
d2273057
...
...
@@ -8,8 +8,8 @@ info:
spring
:
profiles
:
active
:
test
#
active: ${sms-active}
#
active: test
active
:
${sms-active}
mybatis-plus
:
mapper-locations
:
classpath:mapper/*.xml
...
...
src/main/resources/logback-spring.xml
View file @
d2273057
...
...
@@ -3,6 +3,7 @@
<include
resource=
"org/springframework/boot/logging/logback/defaults.xml"
/>
<springProperty
scope=
"context"
name=
"env"
source=
"spring.profiles"
/>
<springProperty
scope=
"context"
name=
"level"
source=
"logging.level"
/>
<property
name=
"service"
value=
"sms-plug"
/>
<property
name=
"logfile"
value=
"${LOG_DIR:-/opt/log/stash}/${service}/${service}"
/>
...
...
@@ -31,7 +32,7 @@
</rollingPolicy>
</appender>
<root
level=
"
info
"
>
<root
level=
"
${level}
"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"logstash"
/>
</root>
...
...
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