![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日常积累
bingwangzi_java
这个作者很懒,什么都没留下…
展开
-
resource is out of sync with the file system 解决方法
<br />在eclipse中,启动run on server时报错:<br /> Resource is out of sync with the file system: ........<br /> 查阅资料后发现这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。<br />解决办法:需要手动刷新一下资源管理器。<br /><br />(1)在eclipse中,工程目录右键,选择F5原创 2011-02-17 17:01:00 · 513 阅读 · 0 评论 -
怎样解决Original must not null
<br />原因是某个Bean缺少SET方法, 自己一个个找去。<br /> <br /> <br />ctrl+ shift +t Eclipse找类<br />原创 2011-02-21 13:39:00 · 1263 阅读 · 0 评论 -
jar包中图片的正确显示及第三方jar包的引用
<br />图片的显示有两种方式:<br />JPanel pic = new JPanel(); pic.add(new JLabel(new ImageIcon(ImageIO.read(new File("./pic/xxx.jpg")))));<br />JLabel pic = new JLabel(); pic.setIcon(new ImageIcon(getClass().getClassLoader().getResource("pic/xxx.jpg")));<br />区别:打成j原创 2011-02-21 18:35:00 · 773 阅读 · 0 评论 -
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
<br /> 问题根源在于Eclipse无法识别上面的两个标签,解决之道为:<br /><br />选择elcipse的window-->preferences,弹出相应对话框;<br />在对话框的的type filter text位置数据 xml c,您将看到XML Catalog,点击进入;<br />选择User Specified Entries,单击添加,然后, 在弹出的对话框相应位置填入对应的xsd文件原创 2011-02-21 14:15:00 · 29680 阅读 · 10 评论