随笔分类 - java
摘要:RCP 启动程序 解决:增加插件dependencies org.eclipse.equinox.ds
阅读全文
摘要:MyEclipse web项目转换为eclipse web项目(把WebRoot转换为WebContent) 1、进入项目目录,打开.project文件。增加内容 <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org
阅读全文
摘要:概述 Apache Derby是一个完全用java编写的数据库,Derby是一个Open source的产品,基于Apache License 2.0分发。 Apache Derby非常小巧,核心部分derby.jar只有2M,所以既可以做为单独的数据库服务器使用,也可以内嵌在应用程序中使用 访问主
阅读全文
摘要:eclipse安装Spring插件时报错: cannot perform operation.Computing alertnate solutions,may take a while :1/15,报出以上错误,并长时间停留 该界面时,问题可能是eclipse一直在尝试从自己的更新源下载插件,因为
阅读全文
摘要:在线安装: eclipse菜单栏 help->install new software...->work with 新增:fatjar - http://kurucz-grafika.de/fatjar 安装失败提示:Failed to prepare partial IU: [R]net.sf.f
阅读全文
摘要:举例 import lombok.extern.slf4j.Slf4j; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @Slf4j public class Synchroni
阅读全文
摘要:单例模式有两种设计: 延迟加载(懒汉式) 私有构造方法 创建本类对象,但不初始化 创建静态方法进行初始化对象并返回 立即加载(饿汉式) 私有构造方法 创建本类的对象并初始化(私有的) 创建静态方法获取本类对象 举例1. /** * 延迟加载(懒汉式) * 1.私有构造方法 * 2.创建本类对象,但不
阅读全文
摘要:1 .java.lang.IllegalArgumentException: Document base /XXX/tomcat/webapps/manager does not exist 解决方法:在tomcat 里找到~\conf\Catalina\localhost 目录下有个manager
阅读全文
摘要:使用Eclipse打成jar包 1.创建项目hello 2.写java文件 3.导出jar包 点击项目,右键选中Export 4.引入jar包 点击项目,右键选中Properties,点击add jars 5.在java类中引入jar包中类
阅读全文