Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
4943de2f
Commit
4943de2f
authored
Jun 04, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加人大金仓配置
parent
6d927a0c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
17 deletions
+118
-17
application-dev.properties
...-data-alarm/src/main/resources/application-dev.properties
+0
-3
application-kingbase8.properties
...alarm/src/main/resources/application-kingbase8.properties
+65
-0
application.properties
...boot-data-alarm/src/main/resources/application.properties
+7
-14
logback-kingbase8.xml
...-boot-data-alarm/src/main/resources/logback-kingbase8.xml
+46
-0
No files found.
amos-boot-data/amos-boot-data-alarm/src/main/resources/application-dev.properties
View file @
4943de2f
spring.application.name
=
AMOS-ALARM
server.servlet.context-path
=
/alarm
server.port
=
11007
# jdbc_config
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://172.16.10.220:3306/equipment?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
...
...
amos-boot-data/amos-boot-data-alarm/src/main/resources/application-kingbase8.properties
0 → 100644
View file @
4943de2f
# jdbc_config
spring.datasource.driver-class-name
=
com.kingbase8.Driver
spring.datasource.url
=
jdbc:kingbase8://10.20.1.176:54321/equipment?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8¤tSchema=root&binaryTransferDisable=TINYINTspring.datasource.username=root
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.pool-name
=
DatebookHikariCP
spring.datasource.hikari.minimum-idle
=
3
spring.datasource.hikari.maximum-pool-size
=
30
spring.datasource.hikari.auto-commit
=
true
spring.datasource.hikari.idle-timeout
=
500000
spring.datasource.hikari.max-lifetime
=
1800000
spring.datasource.hikari.connection-timeout
=
60000
spring.datasource.hikari.connection-test-query
=
SELECT 1
## db2-sync_data
spring.db2.datasource.type
:
com.alibaba.druid.pool.DruidDataSource
spring.db2.datasource.url
=
jdbc:kingbase8://10.20.1.176:54321/jxiop_sync_data?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8¤tSchema=root&binaryTransferDisable=TINYINTspring.datasource.username=root
spring.db2.datasource.username
=
root
spring.db2.datasource.password
=
Yeejoin@2020
spring.db2.datasource.driver-class-name
:
com.mysql.cj.jdbc.Driver
# REDIS (RedisProperties)
spring.redis.database
=
1
spring.redis.host
=
47.92.234.253
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
30000
#注册中心地址
eureka.client.registry-fetch-interval-seconds
=
5
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-renewal-interval-in-seconds
=
5
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path
=
/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://localhost:${server.port}${server.servlet.context-path}/doc.html
eureka.instance.hostname
=
172.16.10.220
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
=
http://${spring.security.user.name}:${spring.security.user.password}@47.92.234.253:10001/eureka/
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://47.92.234.253:1883
emqx.user-name
=
admin
emqx.password
=
public
mqtt.scene.host
=
mqtt://47.92.234.253:8083/mqtt
mqtt.client.product.id
=
mqtt
mqtt.topic
=
topic_mqtt
spring.mqtt.completionTimeout
=
3000
amos-boot-data/amos-boot-data-alarm/src/main/resources/application.properties
View file @
4943de2f
spring.profiles.active
=
dev
spring.application.name
=
AMOS-ALARM-WJ
server.servlet.context-path
=
/alarm
server.port
=
11007
spring.profiles.active
=
kingbase8
server.compression.enabled
=
true
spring.jackson.dateFormat
=
yyyy-MM-dd HH:mm:ss
...
...
@@ -14,7 +18,7 @@ mybatis-plus.mapper-locations=classpath:mapper/*Mapper.xml
#消费者所在组的名称
#消费者 的broker地址
spring.kafka.consumer.bootstrap-servers
=
121.199.39.218
:9092
spring.kafka.consumer.bootstrap-servers
=
47.92.234.253
:9092
# 是否自动提交
spring.kafka.consumer.enable-auto-commit
=
false
#offset的消费位置
...
...
@@ -29,12 +33,10 @@ spring.kafka.listener.type=single
# 并发
#spring.kafka.listener.concurrency=5
# 发生错误后,消息重发的次数。
spring.kafka.producer.retries
=
1
#配置kafak produce的broker地址
spring.kafka.producer.bootstrap-servers
=
121.199.39.218
:9092
spring.kafka.producer.bootstrap-servers
=
47.92.234.253
:9092
#默认批处理大小(以字节为单位)
spring.kafka.producer.batch-size
=
16384
#生产者可以用来缓冲等待发送到服务器的记录的内存总字节数
...
...
@@ -44,15 +46,6 @@ spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.Strin
# kafka默认的String序列化器
spring.kafka.producer.value-serializer
=
org.apache.kafka.common.serialization.StringSerializer
kafka.equipment.alarm
=
EQUIPMENT_ALARM
kafka.equipment.test
=
test88888
...
...
amos-boot-data/amos-boot-data-alarm/src/main/resources/logback-kingbase8.xml
0 → 100644
View file @
4943de2f
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
>
<!-- 控制台输出 -->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
</encoder>
</appender>
<!-- show parameters for hibernate sql 专为 Hibernate 定制
<logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE" />
<logger name="org.hibernate.type.descriptor.sql.BasicExtractor" level="DEBUG" />
<logger name="org.hibernate.SQL" level="DEBUG" />
<logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
<logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />
-->
<!--myibatis log configure-->
<logger
name=
"com.apache.ibatis"
level=
"ERROR"
/>
<logger
name=
"java.sql.Connection"
level=
"ERROR"
/>
<logger
name=
"java.sql.Statement"
level=
"ERROR"
/>
<logger
name=
"java.sql.PreparedStatement"
level=
"ERROR"
/>
<logger
name=
"com.baomidou"
level=
"ERROR"
/>
<logger
name=
"org.springframework"
level=
"INFO"
/>
<logger
name=
"org.apache.activemq"
level=
"INFO"
/>
<!-- 日志输出级别 -->
<root
level=
"ERROR"
>
<appender-ref
ref=
"STDOUT"
/>
</root>
<!--日志异步到数据库 -->
<!--<appender name="DB" class="ch.qos.logback.classic.db.DBAppender">-->
<!--<!–日志异步到数据库 –>-->
<!--<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">-->
<!--<!–连接池 –>-->
<!--<dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource">-->
<!--<driverClass>com.mysql.jdbc.Driver</driverClass>-->
<!--<url>jdbc:mysql://127.0.0.1:3306/databaseName</url>-->
<!--<user>root</user>-->
<!--<password>root</password>-->
<!--</dataSource>-->
<!--</connectionSource>-->
<!--</appender>-->
</configuration>
\ 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