上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 栈大小? -Xss jinfo -flag ThreadStackSize 帧大小? 和方法中的局部变量,对象个数有关系 栈深度? 方法的进出分别对应一个入栈和出栈 -Xss512k 这个值越大,栈深度max-stacks越大,递归的次数越大, 但是整体支持线程数越小 那么一个线程占用多大的栈内存? 阅读全文
posted @ 2018-11-26 17:16 funny_coding 阅读(3822) 评论(0) 推荐(0) 编辑
摘要: 目的: 扫描某个自定义注解标注的类, 或者自定义xml 为这些类生成spring Bean 基本原理:org.springframework.beans.factory.support.DefaultListableBeanFactory#registerBeanDefinition BeanDef 阅读全文
posted @ 2018-11-23 09:28 funny_coding 阅读(1706) 评论(0) 推荐(0) 编辑
摘要: jvm对于类实例的区分 基于完全限定名+classLoader 不同的classLoader可以加载同一class,生成不同实例, 但是这两个class实例生成的对象不能强转 spring boot jar中的lib包如何完全使用自定义的classLoader加载? ==> 在main函数入口, 默 阅读全文
posted @ 2018-11-22 20:47 funny_coding 阅读(688) 评论(0) 推荐(0) 编辑
摘要: https://gooroo.io/GoorooTHINK/Article/17466/Lessons-Learned-Writing-Spring-Boot-Auto-Configurations/29652#.W_ZwdFUzYdV https://blog.csdn.net/isea533/a 阅读全文
posted @ 2018-11-22 17:09 funny_coding 阅读(8634) 评论(0) 推荐(0) 编辑
摘要: 一般的, 在windows cmd上启动 utf-8编码的java应用 会有一些字符集问题 可以修改cmd的字符集编码为utf8 , chcp 65001 java -D有空格时 区别: VM参数是-Dxxx的形式写在启动类前面, program arg是写在启动类后面 正确示例: java -Da 阅读全文
posted @ 2018-11-21 11:52 funny_coding 阅读(167) 评论(0) 推荐(0) 编辑
摘要: org.springframework.boot.SpringApplicationBannerPrinter#print(org.springframework.core.env.Environment, java.lang.Class<?>, java.io.PrintStream) 先从env 阅读全文
posted @ 2018-11-20 21:27 funny_coding 阅读(197) 评论(0) 推荐(0) 编辑
摘要: thymeleaf 基本功能是将 th:xxx的内容替换html标签的内容 原标签的内容会被替换掉,原内容只是前端用来显示demo的 和freemarker, velocity的重要区别是,它们的自定义内容是在html标签内, 而th是在html标签的属性上 th:if th:unless条件成立时 阅读全文
posted @ 2018-11-20 18:06 funny_coding 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 基于包名的正则表达式,是根据抽象父类的包名过滤,还是实现类的包名过滤, 还是抽象父类实现的接口的包名过滤? org.springframework.aop.aspectj.AspectJExpressionPointcut#matches(java.lang.reflect.Method, java 阅读全文
posted @ 2018-11-19 18:14 funny_coding 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 对于只有一个参数的接口类,可以使用e->{} idea会给出快速提示 先写正常的表达式 将虚线处直接删掉, 在原来的方法参数和左大括号之间加上 -> 改造后比原来少了几行, 对于熟手阅读没问题,对于新手理解可能有点别扭 阅读全文
posted @ 2018-11-19 10:19 funny_coding 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 系统有两块硬盘, 第一块安装的win7, 第二块安装ubuntu 默认从sda加载grub 如果在bios页面选择从sdb启动,会找不到grub 进入原来的sda系统, grub-install /dev/sdb, 执行之后直接reboot, 选择第二个硬盘就行了. grub会写入到硬盘mbr记录中 阅读全文
posted @ 2018-11-17 11:10 funny_coding 阅读(439) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
build beautiful things, share happiness