| package com.wzy.serviceedu;

    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.context.annotation.ComponentScan;

    @SpringBootApplication
    @ComponentScan(basePackages = {“com.wzy”})//扫描组件,按照 com.wzy 的包规则扫描,同名扫描
    public class EduApplication {
    public static void main(String[] args) {

    1. SpringApplication.run(EduApplication.**class**, args);<br /> }<br />}

    | | —- |