关闭特定的自动配置


关闭特定的自动配置使用 @SpringBootApplication 注解的 exclude 参数

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

说明:这里是关闭数据源的自动配置,实例用法见 项目实战-实现文章管理功能-PageHelper 分页查询

Copyright 2021 all right reserved,powered by Gitbook该文件修订时间: 2022-05-23 12:18:07

results matching ""

    No results matching ""