@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
//新建模块需要添加包扫描
@ComponentScan({ "com.ruoyi.*", "com.test.*" })
//使用注解sql时记得添加mapper扫描
@MapperScan("com.test.mapper")
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);

}

Logo

快速构建 Web 应用程序

更多推荐