问题
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2832ab8f] was not registered for synchronization because synchronization is not active
Cache Hit Ratio [app.mysql._client.mapper.ClientMapper]: 0.8888888888888888
解决方法
添加 @Transactional(propagation = Propagation.REQUIRES_NEW)
@Service
@DS("_client")
//was not registered for synchronization because synchronization is not active
@Transactional(propagation = Propagation.REQUIRES_NEW)
public class ClientServiceImpl
extends ServiceImpl<ClientMapper, Client>
implements IClientService{
}