Below is my class in which i had to use both @Configuration and @Controller as there should be only one instance of Thymeleaf in the e
@Configuration
@Controller
Thymeleaf
These two annotations are for different things, thus it's better to not use them on the same class. Cause it's against Separation of Concerns principal.