![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA学习
Im_caviar
这个作者很懒,什么都没留下…
展开
-
com.esotericsoftware.kryo.KryoException: Buffer underflow. 解决
查了一下发现input在读到最后一个对象时,其position值和limit值相等,因此可以作为判断条件跳出循环,在读到最后一个对象后终止反序列化。原创 2023-04-25 22:59:39 · 2097 阅读 · 0 评论 -
JAVA学习(1)——组件边框留白
查了下jdk1.8的margin,发现能通过设置Border类向具有现有装饰边框的组件添加空白边距空间,代码如下:Border border = comp.getBorder();Border margin = new EmptyBorder(10,10,10,10);comp.setBorder(new CompoundBorder(border, margin)); 用菜单栏JMenubar举...原创 2018-04-01 11:46:34 · 818 阅读 · 0 评论 -
SpringBoot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @Spri
如果是从spring官网上下载的demo的话,用maven打包时会报如下错误:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test...原创 2019-02-18 09:38:29 · 332 阅读 · 1 评论