自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 关于java反射的理解

获取反射的入口 即class对象1.Class.forName()Class<?> perClazz = Class.forName("..Student");2.类名.classClass<?> perClazz2 = Student.class;3.根据类对象获取Student st=new Student();Class<?> per= st.getClass();常用方法1.获取所有public方法(包含本类,父类,接口)Method[] me

2020-06-18 11:12:26 101

原创 关于java设计模式

1.工厂方法模式(Factory method)创建多个工厂类继承同一个接口;interface Zong{public createFactory();}class FistFactory implements Zong{public Fist createFactory(){return new Fist();}}//方法接口interface Provider{pub...

2018-10-23 14:56:53 104

原创 FileSystemResource和ClassPathResource类

ClassPathResource类,当资源是在项目里的时候,用这个,相对路径的ClassPathResource bgFile = new ClassPathResource(bgPath, this.getClass());FileSystemResource是绝对路径的

2018-10-22 09:59:40 2847

原创 关于Circular placeholder reference 'zookeeper.address' in property definitions错误

关于Circular placeholder reference ‘zookeeper.address’ in property definitions错误在用tomcat启动web的时候,因为tomcat容器里有两个web同时引用了zookeeper.address,导致的这个错误,再次记录一下,解决办法,暂时移除不用的web项目...

2018-09-20 16:12:21 2184

原创 关于maven的<resources>标签

src/main/resources true 作用是使src/main/resources下的所有.properties里面用${}引用的属性能在相应的pom.xml中取到值...

2018-09-13 17:33:46 453

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除