Running as a packaged application----xdebug-xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n

Source: Internet
Author: User

19.2 Running as a packaged application

If you use the Spring Boot Maven or Gradle plugins to create a executable jar you can run your application using java -jar . F or example:

$ Java-jar Target/myproject-0.0.1-snapshot.jar

It is also possible to run a packaged application with remote debugging support enabled. This allows from attach a debugger to your packaged application:

$ java-xdebug-xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n        -jar target/ Myproject-0.0.1-snapshot.jar
19.3 Using the Maven plugin

The Spring Boot Maven plugin includes a run goal which can be used to quickly compile and run your application. Applications run in a exploded form just like in your IDE.

$ MVN Spring-boot:run

You might also want to use the useful operating system environment variable:

$ Export Maven_opts=-xmx1024m-xx:maxpermsize=128m-djava.security.egd=file:/dev/./urandom

(The "EGD" setting is to speed up Tomcat startup by giving it a faster source of entropy for session keys.)

http://docs.spring.io/spring-boot/docs/1.3.9.BUILD-SNAPSHOT/reference/htmlsingle/

Running as a packaged application----xdebug-xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.