- Published on
When developing a Spring Boot application, you're likely familiar with the @SpringBootTest and @WebMvcTest annotations, which are commonly used in testing. However, they serve different purposes and have different scopes. In this article, I'll explain the differences between these two annotations.
![[Testing] - Difference between @SpringBootTest vs @WebMvcTest](/_next/image?url=%2Fstatic%2Fimg%2Fcover%2Fposts%2Fbootvsmvctest.png&w=640&q=75)
![[AWS] - Deploy Spring Boot application to AWS EC2 instance](/_next/image?url=%2Fstatic%2Fimg%2Fcover%2Fposts%2Fec2springboot.png&w=640&q=75)
![[CI/CD] - CI pipelines with GitHub actions](/_next/image?url=%2Fstatic%2Fimg%2Fcover%2Fposts%2Fgithubaction.png&w=640&q=75)
![[Docker] - Dockerize React application with Nginx as web server.](/_next/image?url=%2Fstatic%2Fimg%2Fcover%2Fposts%2Freactdocker.png&w=640&q=75)
![[Docker] - Dockerize a Spring Boot application.](/_next/image?url=%2Fstatic%2Fimg%2Fcover%2Fposts%2Fspringbootdocker.png&w=640&q=75)