问答详情
源自:2-4 Mybatis自动生成器使用方式

启动报错,请问这是什么问题啊

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'app': Unsatisfied dependency expressed through field 'userDoMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDoMapper' defined in file [D:\IntelliJ IDEA 2017.3.5\workspace2\miaosha\target\classes\com\miaosha\dao\UserDoMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required


提问者:周晓舸 2019-02-24 15:45

个回答

  • 慕容6015769
    2019-03-10 12:49:07

    问题解决 了吗?我也遇到同样问题.怎么回事?

  • 大Damon
    2019-02-28 10:45:25

    我和你一样的情况,应该是datasource配置的不对,重新配置一下就解决了的