修改配置,关闭缓存
This commit is contained in:
parent
16c4f78c0d
commit
fc299c7f8b
@ -68,7 +68,7 @@ spring:
|
|||||||
max-idle: 8
|
max-idle: 8
|
||||||
min-idle: 0
|
min-idle: 0
|
||||||
kafka:
|
kafka:
|
||||||
bootstrap-servers: 10.1.5.97:9092
|
bootstrap-servers: 127.0.0.1:9092
|
||||||
producer:
|
producer:
|
||||||
# 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
|
# 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
|
||||||
# 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
|
# 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
|
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<settings>
|
||||||
|
<!-- 二级缓存,默认false -->
|
||||||
|
<setting name="cacheEnabled" value="true"/>
|
||||||
|
</settings>
|
||||||
<typeAliases>
|
<typeAliases>
|
||||||
<typeAlias type="java.util.Map" alias="map"/>
|
<typeAlias type="java.util.Map" alias="map"/>
|
||||||
<typeAlias type="java.util.List" alias="list"/>
|
<typeAlias type="java.util.List" alias="list"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user