自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 项目报错:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath

项目报错:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath

2022-11-12 17:20:39 794 1

原创 出现Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource coul

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could...

2022-11-12 16:11:07 162

原创 父类、子类的无参构造方法和带参构造方法 的运行先后顺序

结论:无参构造方法比有参构造方法先运行; (构造方法)当父类为无参,子类有参时,也是无参先运行。1.建一个父类:Female;一个子类:girl,子类继承父类;2.父类有无参数构造方法分别设为:public female(){ System.out.println("female的无参构造方法 "); }public female(String n){ System.out.println("(有参数)fema...

2021-10-15 17:17:37 2210

原创 多态的练习(1)

题目:1. 设计一个接口接口叫做florist(花店),其中有一个方法叫做buy();2. 实现接口分别让Jack,John,Ruth这三个类(人),实现florist接口,不同的类实现buy()的时候,都打印出不一样的结果(字符串);3. 设置主类为shopowner,添加一个方法叫做sell(),在这个方法中调用florist的buy()(提示:public void sell(florist f))package answer;class ...

2021-10-15 16:17:00 98

空空如也

空空如也

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

TA关注的人

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