配置内容:
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml #把xml文件放在com.XX.mapper.*中可能会出现找到的问题,这里把他放在resource下的mapper中
basePackage: com.example.demo.dao
typeAliasesPackage: com.example.demo.entity #这里是实体类的位置
map-underscore-to-camel-case: true
cache-enabled: false
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #显示日志