7.3.4 增加扫描包
package com.atguigu.gmall0225publisher2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
// 增加扫描包
@MapperScan(basePackages = "com.atguigu.gmall0225publisher2.mapper")
public class Gmall0225Publisher2Application {
public static void main(String[] args) {
SpringApplication.run(Gmall0225Publisher2Application.class, args);
}
}