Springboot之未配置扫描路径
个人Springboot项目
article-mangemant文章管理是一个Springboot工程,主要思路是使用MyBatisPlus自动生成entity层和mapper层。(不过需要注意的是从Mybatisplus的3.0.3版本之后代码生成器和默认模板引擎的依赖)
代码生成器的依赖:
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.3.1.tmp</version>
默认模板引擎依赖:
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.2</version>
报错信息如下:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘adminController’: Unsatisfied dependency expressed through field ‘adminMapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with na