yml 配置
mybatis: config-location: classpath:mybatis-config.xml mapper-locations: classpath:com/example/pgsqldemo/mybatis/dao/xml/*.xml # mapper-locations: classpath:static/mybatis/mapper/*.xml
pom.xml 配置
src/main/java **/*.xml src/main/resources
yml 配置
mybatis: config-location: classpath:mybatis-config.xml
yml 配置
mybatis: config-location: classpath:mybatis-config.xml mapper-locations: classpath:/mapper/*.xml