During development, it is recommended to use the profile local
. In IntelliJ, -Dspring.profiles.active=local
can be added in the VM options of the Run Configuration after enabling this property in "Modify options".
Update your local database connection in application.properties
or create your own application-local.properties
file to override settings for development.
Lombok must be supported by your IDE. For this, in IntelliJ install the Lombok plugin and enable annotation processing
After starting the application it is accessible under localhost:8080
.
The application can be built using the following command:
mvnw clean package
The application can then be started with the following command - here with the profile production
:
java -Dspring.profiles.active=production -jar ./target/my-ecommerce-0.0.1-SNAPSHOT.jar
- +88 01712922516
- +88 01511922516
- [email protected]
- [email protected]
- linkedin.com/in/saiful93/
- github.com/SaifulAlam93
- twitter.com/gmsifulalam93 # Fil-Upload-Using-Spring-boot