mybatis configuration default-statement-timeout 30 map-underscore-to-camel-case true mapper-locations - classpathmapperxml中的classpath是什么意思
classpath是Java中用于指定类文件路径的环境变量,它指向包含Java类文件的根目录或JAR文件。在这个配置中,classpath:/mapper//.xml指定了MyBatis配置文件中映射器文件的位置,即在类路径下的mapper目录下的所有子目录中查找以.xml结尾的文件。
原文地址: https://www.cveoy.top/t/topic/fzgv 著作权归作者所有。请勿转载和采集!