在application .yml文件中添加Mybatis配置:
mybatis:
mapper-locations: classpath:mapper/*.xml //填写mapper映射路径
type-aliases-package: com.demo.demo.pojo //填写实体类路径
Mybatis-generator
中pom .xml下添加mybatis-generator必要依赖,等待下载
在application .yml文件中添加Mybatis配置:
mybatis:
mapper-locations: classpath:mapper/*.xml //填写mapper映射路径
type-aliases-package: com.demo.demo.pojo //填写实体类路径
Mybatis-generator
中pom .xml下添加mybatis-generator必要依赖,等待下载
相关文章: