其他分享
首页 > 其他分享> > spring boot的基本配置——关闭某个特定的自动配置

spring boot的基本配置——关闭某个特定的自动配置

作者:互联网

package com.test;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {Neo4jDataAutoConfiguration.class})
@ComponentScan(basePackages = {"com.test.controller*"})
public class SpringBootStart
{
    public static void main(String[] args)
    {
        SpringApplication.run(SpringBootStart.class, args);
    }

}

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

标签:spring,配置,boot,springframework,autoconfigure,import,org,class
来源: https://www.cnblogs.com/xiaobaibailongma/p/16270131.html