当你需要使用mybatis-config.xml 配置文件的时候你就需要配置config-location,config-location的作用是确定mybatis-config.xml文件位置的,而mapper-locations是用来注册你写的xxxmapper.xml文件。如果你使用了mybatis-config.xml,并且里面配置了mapper,那就不需要mapper-locations
config.location和mapper.locations的区别
最新推荐文章于 2022-12-03 23:05:30 发布