File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed 
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6837,6 +6837,10 @@ restricted set of auto-configuration classes. If you need to exclude one of them
68376837most `@...Test` annotations provide an `excludeAutoConfiguration` attribute.
68386838Alternatively, you can use `@ImportAutoConfiguration#exclude`.
68396839
6840+ NOTE: Including multiple "`slices`" via the several `@...Test` annotations in one test is
6841+ not supported. If you need multiple "`slices`", pick one of the `@...Test` annotations
6842+ and include the `@AutoConfigure...` annotations of the other "`slices`" by hand.
6843+ 
68406844TIP: It is also possible to use the `@AutoConfigure...` annotations with the standard
68416845`@SpringBootTest` annotation. You can use this combination if you are not interested in
68426846"`slicing`" your application but you want some of the auto-configured test beans.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments