如果使用官方的Java镜像,或者基于Java镜像构建的Docker镜像,都可以通过传递 JAVA_OPTS 环境变量来轻松地设置JVM的内存参数。比如,对于官方Tomcat 镜像,我们可以执行下面命令来启动一个最大内存为512M的tomcat实例 在日志中,我们可以清楚地发现设置已经生效 “Comm ...
分类:
编程语言 时间:
2017-03-30 23:24:07
阅读次数:
588
文档: https://www.gitbook.com/book/qbgbook/spring-boot-reference-guide-zh/details 配置: http://docs.spring.io/spring-boot/docs/current/reference/html/comm ...
分类:
编程语言 时间:
2017-03-30 20:39:19
阅读次数:
192
reference to : http://blog.csdn.net/liujinlongxa/article/details/46490949 前言 做iOS开发经常会遇见这种情况,产品汪拿着你做的东西过来对你说:“这个Label的字体大小不对,我的效果图里明明标注的是20px,这个大小肯定不是 ...
分类:
系统相关 时间:
2017-03-30 17:06:30
阅读次数:
316
1、启动 net start(stop) mysql mysql -h localhost -u root -p 2、数据库的操作 create database 数据库名; show databases; use 数据库名; -->选择数据库使用 drop database 数据库名; -->删除 ...
分类:
数据库 时间:
2017-03-30 13:36:56
阅读次数:
261
Civi3D (AutoCAD)二次开发的plugin,实际上很简单,只是一个普通的.NET Assembly DLL。因为需要调用AutoCAD以及Civil3D的.NET API,因此需要reference这些product的.NET API DLL。除此之外并没有什么特别的。 创建Projec... ...
分类:
其他好文 时间:
2017-03-30 00:01:16
阅读次数:
245
https://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html https://docs.spring.io/spring/docs/current/spring-framework-refere ...
分类:
编程语言 时间:
2017-03-29 20:54:11
阅读次数:
161
感觉sublime的记住上次打开文件的功能很烦,把他关掉吧 在"User/Preferences.sublime-settings"配置文件中增加条目: 这样再打开就清爽多了。 ...
分类:
其他好文 时间:
2017-03-29 16:04:36
阅读次数:
97
最近在Linux下编程发现一个诡异的现象,就是在链接一个静态库的时候总是报错,类似下面这样的错误: 关于undefined reference这样的问题,大家其实经常会遇到,在此,我以详细地示例给出常见错误的各种原因以及解决方法,希望对初学者有所帮助。 1. 链接时缺失了相关目标文件(.o) 测试代 ...
分类:
其他好文 时间:
2017-03-29 12:46:50
阅读次数:
12218
ffmpeg下载地址 http://www.ffmpeg.club/ AVPacket是ffmpeg用来存放编码后的视频帧数据,我们来分析一下这个结构体,先贴出ffmpeg3.2中AVPacket声明的源代码: typedef struct AVPacket { /** * A reference ...
分类:
编程语言 时间:
2017-03-29 11:27:17
阅读次数:
423
The pseudo-variable $this is available when a method is called from within an object context. $this is a reference to the calling object (usually the ...
分类:
Web程序 时间:
2017-03-29 11:25:31
阅读次数:
236