DXGalaxy 2023-08-02 00:06 采纳率: 0%
浏览 35
已结题

关于#springboot#的问题,如何解决?

一个小的springboot项目,就是连接一下mysql数据库总是报错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'medicontroller': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mediMapper' defined in file [D:\IDEAworks\testsq\target\classes\com\example\testsq\Mapper\mediMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

找了网上很多方法都没效果,各个part如下

img

img

img

img

img

img

  • 写回答

17条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 8月10日
  • 创建了问题 8月2日