I am new to Spring Boot and I was just wondering if I need all annotations on my main method that I currently have Here they are
@Import(ServiceConfiguration.class)
@SpringBootApplication(scanBasePackages = {"com.myproject.rest",})
@EnableJpaRepositories({"com.myproject.dao.jpa"})
@EntityScan(basePackages = "com.myproject.domain.jpa")
The class ServiceConfiguration.class has the following annotations
@Configuration
@EnableConfigurationProperties({SlackServiceProperties.class})
My database objects have the @Entity annotation, my rest classes have the @RestController annotation and my service classes have the @Component annotation
Just wondering are they all needed or can I exclude any of these annotations?
Thanks