Running as a packaged application--- -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n
2024-08-31 22:12:27
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/
最新文章
- jquery easyui tree dialog
- BeanShell用法汇总(部分摘抄至网络)【转】
- MongoDB C# / .NET Driver
- 30几个HTML5经典动画应用回顾 让你大饱眼福
- ARM你必须知道的事儿——为啥“PC = PC + 8”?
- ASP.NET MVC ModelState
- Java笔记(三十)……正则表达式
- 简单登录案例(SharedPreferences存储账户信息)&;联网请求图片并下载到SD卡(文件外部存储)
- JavaScript Boolean(布尔) 对象
- .net生成Excel,并下载
- 推荐几个我一直在使用chrome小工具(上)
- SQL Server的链接服务器(MySQL、Oracle、Ms_sql、Access、SYBASE)
- 【Android 应用开发】Android 开发 之 JNI入门 - NDK从入门到精通
- UWSGI配置文件---ini和xml示例
- 字符串的拼接python
- 关于sql server profiler 监控工具的使用
- Confluence 6 针对合并完全失败的内容重新运行合并
- ElastichSearch漏洞
- jQuery应用实例4:下拉列表
- JMeter—后置处理器(十)
热门文章
- GCJ 2008 Round 1A Minimum Scalar Product
- sublime找到成对标签(Ctrl+Shift+";)
- UCloud上LAMP小型站点搭建与測试
- 算法 Tricks(五)—— 将一个序列量化为何值时平方误差最小
- FastSocket学习笔记~RPC的思想,面向对象的灵活
- PBOC
- gdb常用调试命令以及多线程堆栈的查看
- Apache+tomcat的整合 分类: C_OHTERS 2014-05-07 15:08 293人阅读 评论(0) 收藏
- css样式继承规则详解
- ASP.NET 生命周期及管道事件