springboot+vue+mybatis项目   

背景:代码均正常

1.试了修改pom.xml文件,没生效

<!--        添加资源-->
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <!-- src/main/resources下的指定资源放行 -->
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.yml</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>

2.修改properties文件有效,*.xml  改为 *.Mapper

mybatis.mapper-locations=classpath:mapper/*.xml
改为:
mybatis.mapper-locations=classpath:mapper/*Mapper

参考链接:

Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘报错解决_咚咚咚21的博客-CSDN博客

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐