Loading

摘要: /** * restful默认不返回主键id, 需要新增配置文件 */ @Configuration class SpringDataRestConfig { @Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigure... 阅读全文
posted @ 2017-07-26 19:17 yaro-feng 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: https://my.oschina.net/xinxingegeya/blog/359968 阅读全文
posted @ 2017-07-11 14:52 yaro-feng 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 系统默认的是Tab键,个人喜欢用空格键作为自动补全键,设置方法如下 Setting-->Keymap-->Editor Actions:Choose Lookup Item Replace 双击上图中“Tab” 选择Leave可以保留Tab功能 阅读全文
posted @ 2017-06-29 10:42 yaro-feng 阅读(4999) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/code/snippet_12_46548 阅读全文
posted @ 2017-06-14 11:41 yaro-feng 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 点我 阅读全文
posted @ 2017-05-22 19:25 yaro-feng 阅读(4859) 评论(0) 推荐(0) 编辑
摘要: 1、freemarker thymleaf : 优点:springboot推荐使用thymleaf,thymleaf最大好处是模板文件可以被直接打开,方便前后端分离。 缺点:根据测评结果,速度比较慢。官方也不谈效率。 jsp: 太老,太土,太重,不考虑。 freemarker: 优点:速度居中,没有 阅读全文
posted @ 2017-03-31 11:31 yaro-feng 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 在微信内置浏览器中被访问的网页,可使用该JavaScript代码关闭当前网页。 主要使用场景: 微信用户在公众号会话中点击外链到达公众号的网页,在用户完成操作后,公众号(网页方)可调用此接口关闭当前网页窗口,使用户返回会话。 接口调用代码(JavaScript) 返回说明 微信浏览器中有带有Weix 阅读全文
posted @ 2017-03-23 11:43 yaro-feng 阅读(14451) 评论(0) 推荐(1) 编辑
摘要: /// /// 分页查询 + 条件查询 + 排序 /// /// 泛型 /// 每页大小 /// 当前页码 /// 总数量 /// 查询条件 /// 排序条件 /// 是否升序 /// IQueryable... 阅读全文
posted @ 2017-02-14 17:51 yaro-feng 阅读(337) 评论(0) 推荐(0) 编辑
摘要: [HttpGet] public HttpResponseMessage GetWebConfigValue(string key) { var response = Request.CreateResponse(HttpStatusCode.OK); response.StatusCode = Ht... 阅读全文
posted @ 2017-02-10 15:08 yaro-feng 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: 研究了下 ClientBase(Binding binding, EndpointAddress remoteAddress) 这个重载更好用,都不用填名称比如 new PAS.WebService.PASServiceSoapClient(new BasicHttpBinding(), new E 阅读全文
posted @ 2017-01-06 12:31 yaro-feng 阅读(329) 评论(0) 推荐(1) 编辑