mybatis二级缓存需要在哪个配置文件中配置?
mybatis二级缓存需要在mybatis的配置文件中进行配置。具体可以在mybatis-config.xml或者mapper.xml中进行配置。在mybatis-config.xml中配置可以对所有mapper生效,而在mapper.xml中配置则只对该mapper生效。
原文地址: https://www.cveoy.top/t/topic/fzk2 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
mybatis二级缓存需要在mybatis的配置文件中进行配置。具体可以在mybatis-config.xml或者mapper.xml中进行配置。在mybatis-config.xml中配置可以对所有mapper生效,而在mapper.xml中配置则只对该mapper生效。
原文地址: https://www.cveoy.top/t/topic/fzk2 著作权归作者所有。请勿转载和采集!