This is a simple Spring Boot application prepared for basic learning purpose.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java 8 or later [Currently I am using Java 17]
- IDE (VS Code, IntelliJ, or any)
- Java Support
- Language Support for Java(TM) by Red Hat
- Project Manager for Java
- Extension Pack for Java
- Debugger for Java
- Maven for Java
- Spring Boot
- Spring Boot Dashboard
- Spring Boot Extension Pack
- Spring Boot Tools
- Spring Initializr Java Support
- Testing
- Cucumber
- General
- XML
- IntelliCode
- Code Runner
- Prettier - Code formatter
- Clone repository
git clone https://github.com/VigneshwaranSooriyamoorthy/SpringBootApplication.git
mvn clean install
to synchronize all dependencies, to skip testsmvn clean install -DskipTests
- Open 'Spring Boot Dashboard' (VS Code)
- Run 'demo' application
- Navigate to http://localhost:8080 to access the webpage
- Only for MS SQL Server - Make sure to enable TCP/IP protocol from SQl Server Configuration Manager
- Spring Boot application
- Data injection (Optional)
- Spring Boot Entity ~ DB table equivalent
- Rest endpoint controller
- Repository handler
- Spring Boot property file
- Spring Boot property file for H2
- Spring Boot property file for MS SQL Server
- Feature files
- Test result - Cucumber reports
- Test runner class - Java application
- JUnit - Cucumber runner class
- As Java application
- As JUnit
- As Maven
- To debug a specific test scenario
- VS Code
- Add any new tag to the test scenario
- Update the parameter FILTER_TAGS_PROPERTY_NAME of JUnit - Cucumber runner class
- Run CucumberRunnerTest (Refer section Test Execution)
- IntelliJ (Easy approach)
- Use the 'Run Test' icon displayed near to the scenario
- VS Code