扫描controller
@ComponentScan(basePackages = {“com.example”})
@ComponentScan(basePackages = {"com.example"})
@SpringBootApplication
public class TeacherApplication {
public static void main(String[] args) {
SpringApplication.run(TeacherApplication.class,args);
}
}