- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 builder模式
1.对比 可伸缩(telescoping constructor)构 造方法模式 :参数过多调用容易出错相同类型难以区分 JavaBeans 模式:解决伸缩构造方法模式的缺点 但是操作时可能创建两个对象,很容易出现set数据进错误的对象里,这样出现bug也难以查找到。 2.bulider模式优点 可读性强、操作安全、build之后不可变。 3.缺点 为了创建对象,首先必须创建它的 builder。...
2020-03-27 11:32:02
268
原创 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
2882
原创 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
184
原创 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
694
原创 数据库查出date 数据转换格式到前端
@JsonFormat(pattern = “yyyy-MM-dd HH:mm:ss”) 放在实体类date 类型变量上import com.fasterxml.jackson.annotation.JsonFormat; 前端接收时是对应格式 @InitBinder public void initBinder(WebDataBinder binder) { SimpleDateFormat d...
2019-09-18 14:40:19
811
原创 线程池
五参数 ThreeadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit, BlockingQueue workQueue) 六参数 ThreeadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,...
2019-09-11 15:04:32
142
原创 使用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
2688
原创 shiro+springboot使用
ShiroConfig 配置 @Configuration public class ShiroConfig { @Bean("authorizer") public Authorizer authorizer(){ return new ModularRealmAuthorizer(); } /** * 配置Shiro核心 安全管理器 Security...
2019-09-11 11:49:39
165
原创 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
1421
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅