Jun 26, 2024
RestTemplate
for simple request/response interactions.FeignClient
for cleaner and efficient code.spring-boot-starter-cache
.@EnableCaching
annotation to the main class.@Cacheable
on methods.@CacheEvict
and @CachePut
./api/v1/products
).Accept
header for content negotiation.JpaRepository
).@ConditionalOnClass
to create a bean if a specific class is present.ApplicationContext
and use getBeanDefinitionNames
method.@Async
for asynchronous method execution.@EnableAsync
to configuration classes.@PostMapping
.MultipartFile
as a parameter in the controller.spring-boot-starter-mail
.JavaMailSender
to send emails.spring [filename].groovy
.spring-boot-starter-security
.WebSecurityConfigurerAdapter
.@PreAuthorize
.@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
.@Configuration
, @EnableAutoConfiguration
, and @ComponentScan
.docker build
to create the Docker image.KafkaTemplate
or equivalent.WebSecurityConfigurerAdapter
.@ConditionalOnMissingBean
to prevent redundant configurations.server.port
, server-port
, server_port
all recognized the same.pom.xml
or build.gradle
.@ControllerAdvice
for global error handling.Pageable
.ErrorController
.@RequestMapping
to map error paths.ApplicationEvent
.ApplicationEventPublisher
.@EventListener
annotation.deleted
or deleteTimestamp
columns.spring-boot-starter-webflux
.Mono
and Flux
for reactive types.