Sfoglia il codice sorgente

修改kafka配置文件

konghl 4 anni fa
parent
commit
b61fa21c4f

+ 0 - 1
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/DeviceManageServiceImpl.java

@ -53,7 +53,6 @@ public class DeviceManageServiceImpl implements DeviceManageService {
53 53
    @Autowired
54 54
    UserDtoQuery userDtoQuery;
55 55
56
57 56
    @Override
58 57
    public PageInfo<Map<String, Object>> queryPageDeviceInfo(Map<String, String> params, int pageNumber, int pageSize)
59 58
            throws Exception {

+ 1 - 1
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/WorkEmployeeServiceImpl.java

@ -49,7 +49,7 @@ public class WorkEmployeeServiceImpl implements WorkEmployeeService {
49 49
    @Override
50 50
    public CommonResponse<PageBean<UserDto>> queryWorkEmployee(CommonRequest<UserDto> request) throws Exception {
51 51
        // TODO 组织编码
52
        request.getData().setOrgCode("0000");
52
        //request.getData().setOrgCode("0000");
53 53
        return userDtoQuery.queryWorkEmployee(request);
54 54
    }
55 55

+ 19 - 17
location-rescue-service/src/main/resources/application.properties

@ -18,21 +18,23 @@ spring.jpa.properties.hibernate.generate_statistics=false
18 18
spring.main.allow-bean-definition-overriding=true
19 19
20 20
#kafka
21
spring.kafka.bootstrap-servers=47.105.160.21:9090
22
spring.kafka.producer.retries=0
23
spring.kafka.producer.batch-size=16384
24
spring.kafka.producer.buffer-memory=33554432
25
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
26
spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
27
spring.kafka.consumer.group-id=spring-boot-demo
28
spring.kafka.consumer.enable-auto-commit=false
29
spring.kafka.consumer.auto-offset-reset=latest
30
spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
31
spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer
32
spring.kafka.consumer.properties.session.timeout.ms=60000
33
spring.kafka.listener.log-container-config=false
34
spring.kafka.listener.concurrency=5
35
spring.kafka.listener.ack-mode=manual-immediate
21
kafka.bootstrap-servers=47.105.160.21:9090
22
kafka.topic.deviceLocation=Topic_IoT_DeviceLocation
23
kafka.topic.alarm=Topic_IoT_IndividualAlarm
24
kafka.producer.batch-size=16785
25
kafka.producer.retries=1
26
kafka.producer.buffer-memory=33554432
27
kafka.producer.linger=1
28
kafka.consumer.auto-offset-reset=latest
29
kafka.consumer.max-poll-records=3100
30
kafka.consumer.enable-auto-commit=false
31
kafka.consumer.auto-commit-interval=1000
32
kafka.consumer.session-timeout=20000
33
kafka.consumer.max-poll-interval=15000
34
kafka.consumer.max-partition-fetch-bytes=15728640
35
kafka.listener.batch-listener=false
36
kafka.listener.concurrencys=3,6
37
kafka.listener.poll-timeout=1500
36 38
37 39
38 40
# CACHE
@ -40,8 +42,8 @@ spring.kafka.listener.ack-mode=manual-immediate
40 42
#spring.cache.ehcache.config=ehcache.xml
41 43
42 44
# LOGGING
43
logging.level.com.ai=info
44
logging.level.org.springframework.data=info
45
logging.level.com.ai=debug
46
logging.level.org.springframework.data=debug
45 47
46 48
# \u5f15\u5165gis\u548ciot\u7684\u914d\u7f6e\u6587\u4ef6
47 49
spring.profiles.active=iot,gis