Basic Java Spring Boot application
- use IDE or use command:
mvnw spring-boot:run
from project root
NOTE: port currently set to 8081 in: src/main/resources/application.properties
- build image:
docker build -t myspringboot .
- run app:
docker run -p 8080:8081 myspringboot
- run REST API Tests only:
mvn test -Dtest=RestAPITest
- run Cucumber tests:
mvn test
- setup IntelliJ IDE
- create a basic application using spring initializer
- add basic junit tests
- add cucumber tests/reports
- Install Cucumber plugin in Idea IDE
- create test runner
- add selenium tests
- Dockerize app
- use Jenkinsfile
- Jmeter tests
- solve issue with mvn test not picking up cucumber tests
- add github actions
- use GitHub Webhooks
- added webdriver manager for managing driver instances: https://github.com/bonigarcia/webdrivermanager
- Spring IOC Container
- @Autowired
- https://stackoverflow.com/questions/27767264/how-to-dockerize-maven-project-and-how-many-ways-to-accomplish-it
- https://www.youtube.com/watch?v=HaGeSq-SB9E
- idea plugins for cucumber : https://www.jetbrains.com/help/idea/testing-frameworks.html
- Serving Web Content
- Testing
- cucumber spring boot repos:
- Video Series
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Boot DevTools
- Spring Web
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- cucumber-reporting plugin