Welcome to my website, have a nice day!
Dream it, Do it, Make it!

Spring Boot中@MapperScan注解多个包

单个:

@SpringBootApplication
@MapperScan("org.4spaces.**.dao")
public class Application {
    public static void main(String[] args) {
        // ...
    }
}

多个:

@SpringBootApplication
@MapperScan({"org.4spaces.**.dao","com.v2ray.**.dao"})
public class Application {
    public static void main(String[] args) {
        // ...
    }
}
赞(0)
未经允许禁止转载:Ddmit » Spring Boot中@MapperScan注解多个包

评论 抢沙发

登录

找回密码

注册