枚举+反射实现简单工厂模式(又叫静态工厂模式) 定义接口: public interface IAnimal { public void eat(); } 具体类: public class Pig implements IAnimal { public void eat() { System.ou Read More
posted @ 2019-03-14 23:48 护花使者 Views(388) Comments(0) Diggs(0) Edit
找到conf目录下的jvm.options文件,找到如下的配置行: 我将之前的UTF-8 改成GBK,ok。 Read More
posted @ 2019-03-14 09:11 护花使者 Views(6455) Comments(1) Diggs(1) Edit