@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);
}
idea若依自建模块Controller接口404时,需在admin启动类添加扫描
最新推荐文章于 2024-07-25 19:28:15 发布