1.使用.yml
mybatis:
#标注mybatis配置文件的位置
config-location: classpath:mybatis-config.xml
#标注待解析的mapper的xml文件位置
mapper-locations: classpath:mapper/*.xml
#标注实体类位置
type-aliases-package: com.mybatisPlus.pojo
configuration:
#自动驼峰命名
map-underscore-to-camel-case: false
2.使用.properties
mybatis-plus.config-location=classpath:mybatis-config.xml
mybatis-plus.mapper-locations=classpath:mapper/*.xml
mybatis-plus.type-aliases-package=com.mybatisPlus.pojo