InterviewSolution
| 1. |
What are different ways of running Spring Boot Application? |
|
Answer» Spring Boot OFFERS different ways of running an APPLICATION. These are : Running the Application as Spring Boot Application 1. Running the application in an external TomcatBy Packaging the application as War application and deploying it to an external Tomcat WEB server. 2. Running the application using java -jar “artifcat_name”.java -jar target/mydemoapp.jar To Support remote debugging for this, you can use the following parameters along with the java command : java -Xdebug -Xrunjdwp:server=y, transport=dt_socket, address=8000,suspend=n \ -jar target/mydemoapp.jar 3. By using Maven or GRADLE Pluginmvn spring-boot:run You can use the MAVEN_OPTS environment variable export MAVEN_OPTS=-Xmx1024m gradle bootRun You can use JAVA_OPTS environment variable export JAVA_OPTS=-Xmx1024m |
|