Because there is no corresponding dependence
package com.taotao.config; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; //springboot项目唯一入口配置 @SpringBootApplication //扫描整个com.zjdfwl.mall包 @ComponentScan(basePackages = "com.taotao") @MapperScan( "com.taotao.mapper") public class Application { public static void main(String[] args) { System.out.println("zouzhele"); SpringApplication.run(Application.class, args); } }
<-! MyBatis-PLUS -> < dependency > < the groupId > com.baomidou </ the groupId > < the artifactId > MyBatis-PLUS-Boot-Starter </ the artifactId > < Version > 2.3 </ Version > </ dependency > < ! - Code generator engine template using the following default -> < dependency > < the groupId > org.apache.velocity </ the groupId > < the artifactId >velocity-engine-core</artifactId> <version>2.0</version> </dependency>
Like the corresponding dependence plus