一个小的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如下