输入正
启动报错说找不到mybatis.config-file
Caused by: java.io.FileNotFoundException: class path resource [mybatis.config-file] cannot be opened because it does not exist
我在application.yml里面配置
mybatis:
config-file: mybatis-config.xml
mapper-locations: /db/mapper/**.xml
type-alias-packages: com.project.scan.db.entity
然后再SessionFactoryConfiguration里面引用
@Value("mybatis.config-file")
private String mybatisConfigFile;
文
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程