会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
护花使者
CnBlogs
Home
New Post
Contact
Admin
Subscription
2019年3月14日
简单工厂模式的实现
枚举+反射实现简单工厂模式(又叫静态工厂模式) 定义接口: 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
elasticsearch解决控制台中文乱码问题
找到conf目录下的jvm.options文件,找到如下的配置行: 我将之前的UTF-8 改成GBK,ok。
Read More
posted @ 2019-03-14 09:11 护花使者
Views(6455)
Comments(1)
Diggs(1)
Edit
公告