SpringBoot+Maven 子模块导入其他子模块的Bean

    技术2022-07-13  73

    SpringBoot+Maven 子模块导入其他子模块的Bean

    在启动类中导入@ComponentScan(basePackages = {“cn.upzy.server”})

    @SpringBootApplication @EnableEurekaClient @ComponentScan(basePackages = {"cn.upzy.server"}) @MapperScan("cn.upzy.server.mapper") public class SystemApplication {
    Processed: 0.014, SQL: 9