Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required问题解决

在网上查看了很多的办法,比如pom.xml加mybatis-spring-boot-starter的依赖,或者是继承SqlSessionDaoSupport都试过了,都不成,最后,通过 https://www.lmlphp.com/user/4610/article/item/34216/

这里找到了答案,在pom.xml中添加


            com.alibaba
            druid-spring-boot-starter
            1.1.9

 

解决问题,可以正常启动

你可能感兴趣的:(Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required问题解决)