19.2 Running as a packaged application

If you use the Spring Boot Maven or Gradle plugins to create an executable jar you can run your application using java -jar. For 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 you to 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 an 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/

最新文章

  1. jquery easyui tree dialog
  2. BeanShell用法汇总(部分摘抄至网络)【转】
  3. MongoDB C# / .NET Driver
  4. 30几个HTML5经典动画应用回顾 让你大饱眼福
  5. ARM你必须知道的事儿——为啥“PC = PC + 8”?
  6. ASP.NET MVC ModelState
  7. Java笔记(三十)……正则表达式
  8. 简单登录案例(SharedPreferences存储账户信息)&联网请求图片并下载到SD卡(文件外部存储)
  9. JavaScript Boolean(布尔) 对象
  10. .net生成Excel,并下载
  11. 推荐几个我一直在使用chrome小工具(上)
  12. SQL Server的链接服务器(MySQL、Oracle、Ms_sql、Access、SYBASE)
  13. 【Android 应用开发】Android 开发 之 JNI入门 - NDK从入门到精通
  14. UWSGI配置文件---ini和xml示例
  15. 字符串的拼接python
  16. 关于sql server profiler 监控工具的使用
  17. Confluence 6 针对合并完全失败的内容重新运行合并
  18. ElastichSearch漏洞
  19. jQuery应用实例4:下拉列表
  20. JMeter—后置处理器(十)

热门文章

  1. GCJ 2008 Round 1A Minimum Scalar Product
  2. sublime找到成对标签(Ctrl+Shift+")
  3. UCloud上LAMP小型站点搭建与測试
  4. 算法 Tricks(五)—— 将一个序列量化为何值时平方误差最小
  5. FastSocket学习笔记~RPC的思想,面向对象的灵活
  6. PBOC
  7. gdb常用调试命令以及多线程堆栈的查看
  8. Apache+tomcat的整合 分类: C_OHTERS 2014-05-07 15:08 293人阅读 评论(0) 收藏
  9. css样式继承规则详解
  10. ASP.NET 生命周期及管道事件