in Spring by
Can you tell how to exclude any package without using the basePackages filter?

1 Answer

0 votes
by

We can use the exclude attribute while using the annotation @SpringBootApplication as follows

@SpringBootApplication(exclude= {Student.class})

public class InterviewBitAppConfiguration {}

Related questions

0 votes
asked Apr 4, 2021 in Spring by Robindeniel
0 votes
asked Apr 4, 2021 in Spring by Robindeniel
0 votes
asked Apr 4, 2021 in Spring by Robindeniel
...