自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 builder模式

1.对比可伸缩(telescoping constructor)构 造方法模式 :参数过多调用容易出错相同类型难以区分JavaBeans 模式:解决伸缩构造方法模式的缺点 但是操作时可能创建两个对象,很容易出现set数据进错误的对象里,这样出现bug也难以查找到。2.bulider模式优点可读性强、操作安全、build之后不可变。3.缺点为了创建对象,首先必须创建它的 builder。...

2020-03-27 11:32:02 202 1

原创 js 获取freemarker中的数据

后端 @RequestMapping("list") public String List(Model model){ List<Calendar> all = getAll(); model.addAttribute("ddd",all); return "calendar"; }```js var a = []...

2019-09-27 10:28:23 2731

原创 easyUI 分页

后端返回 数据 总记录数 当前页 每页条数html ftl<table id="dg" title="【管理】" class="easyui-datagrid" style="width:auto;height:450px;" url="" toolbar="#toolbar_user" rownumbers="true" fitColumns="t...

2019-09-23 10:07:59 142

原创 combobox 下拉列表 获取后端数据

easyUI 获取后端数据 ajax后端代码 //查找ip @RequestMapping("/searchIp") @ResponseBody public Result searchIp(String cardId) throws BException { if(cardId== null || "".equals(cardId)){ ...

2019-09-23 09:54:42 631

原创 数据库查出date 数据转换格式到前端

@JsonFormat(pattern = “yyyy-MM-dd HH:mm:ss”)放在实体类date 类型变量上import com.fasterxml.jackson.annotation.JsonFormat;前端接收时是对应格式@InitBinderpublic void initBinder(WebDataBinder binder) {SimpleDateFormat d...

2019-09-18 14:40:19 742

原创 线程池

五参数ThreeadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit, BlockingQueue workQueue)六参数ThreeadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,...

2019-09-11 15:04:32 89

原创 使用nginx做代理文件服务器,文件下载不自动打开。

nginx配置文件修改nginx.conf server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { ...

2019-09-11 14:22:33 2530

原创 shiro+springboot使用

ShiroConfig 配置@Configurationpublic class ShiroConfig { @Bean("authorizer") public Authorizer authorizer(){ return new ModularRealmAuthorizer(); }/** * 配置Shiro核心 安全管理器 Security...

2019-09-11 11:49:39 119

原创 easyUI class ="easyui-textbox" blur事件不触发或者第一次获取不到value解决方法

easyUI class =“easyui-textbox” blur事件不触发或者第一次获取不到value解决方法解决easyui-textbox 事件不触发解决easyui-textbox 事件第一次触发获取value为空 <input type="text" id="username" name="username" class="easyui-textbox" require...

2019-09-11 10:11:46 1278 2

easyUI日期中文化包只改了日期的别的没改

easyUI 日期是英文显示并且格式为月/日/年 使用这个js后变成中文显示并且显示格式为年/月/日。

2019-09-23

空空如也

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

TA关注的人

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