- 博客(513)
- 资源 (29)
- 收藏
- 关注
原创 查询category的id存在于项目表中category_id_list的json array字段中
查询category的id存在于项目表中category_id_list的json array字段中。
2024-04-10 16:24:49
292
1
原创 mybatis-plus code generator 代码生成器
【代码】mybatis-plus code generator 代码生成器。
2023-09-22 10:52:58
309
1
原创 mysql sql where case
select DISTINCT n.* from tbl_mo_number n LEFT JOIN tbl_mo_assign a on a.mo_number_id = n.id LEFT JOIN tbl_mo_lvn_order_detail od on od.mo_number_id = n.idLEFT JOIN tbl_mo_lvn_pool_detail pd on pd.mo_number_id = n.idWHERE n.packet_id = 521 AND CASE 0 W.
2021-08-17 15:11:45
421
原创 利用CountDownLatch自制计数器
自定义计数器@Slf4j@Componentpublic final class Monitor { private static final AtomicInteger COUNTER = new AtomicInteger(); private static CountDownLatch latch = new CountDownLatch(1); /** * @param limit 限制总数 * @param currentCo
2021-04-26 09:08:03
337
原创 定位Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误
在tomcat启动时报invalid LOC header (bad signature)错误 Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature) at org.apache.catalina.webresource...
2018-08-14 17:50:46
3053
1
原创 spring3使用profile
在spring3与web.xml的环境中使用spring的profilespring-ftp-file-service.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http:...
2018-08-14 14:31:17
480
原创 golang中字符串与数值的转换,整型转浮点型
#string到intint,err:=strconv.Atoi(string)#string到int64int64, err := strconv.ParseInt(string, 10, 64)#int到stringstring:=strconv.Itoa(int)#int64到stringstring:=strconv.FormatInt(int64,1...
2018-07-17 10:58:16
4982
原创 解决golang.org不可访问问题
在goland开发工具启动经常会报http://golang.org/x/text?go-get=1等golang.org域名不可访问问题。The following issues were found in Gopkg.toml: ✗ unable to deduce repository and source type for "golang.org/x/text": unabl...
2018-06-13 09:11:02
5579
2
原创 使用ubuntu过程中遇到的问题及解决办法
./Postman: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory网上很多人说是下载libgconf-2-4这个包。但实际上在ubuntu搜索应该搜索以下这个包。解决办法:sudo apt-get install g...
2018-05-22 10:01:59
290
原创 Angularjs 1.x 中使用 layDate 日期控件
本文参照Angularjs 中使用 layDate 日期控件进行修改。laydate控件版本采用5.0.7,下载地址github。原版的package.json文件好像是有编码问题。需要将该文件转到utf-8格式的。 /** * 使用示例: * <p> * <ul> * <li> 基本日期选择:<in...
2017-10-18 11:30:13
1292
原创 简易向左移动的滚动效果 jquery simple marquee
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>简易marquee效果</title> <style type="text/css&
2017-10-15 14:57:25
280
原创 angualrjs添加动态指令(动态编译指令)
本文参考自后补全的代码:http://blog.youkuaiyun.com/liwusen/article/details/52078435<body ng-app="myapp"><h1>动态编译指令,动态编译指令模板内容</h1><div class="container" ng-controller="MyController"&g
2017-09-26 20:45:36
264
原创 CKeditor的取值和赋值
<script type="text/javascript"> var myeditor=CKEDITOR.replace('txtContent', { toolbar: 'Basic' });</script> 即赋值给一个变量就OK了,然后使用下面的方式读取文本域的值:myeditor.document.getBody()....
2017-07-05 14:51:56
3285
原创 Spring boot 环境下配置CKEditor添加google map
本文档基于已经搭建好基础ckeditor的环境上。如:http://www.cnblogs.com/daxin/p/3553865.html使用leaflet的ckeditor的google map插件; 1、下载、解压插件下载地址:http://ckeditor.com/addon/leaflet下面是leaflet依赖的插件http://ckeditor.com...
2017-07-05 14:39:30
468
原创 docker使用阿里云镜像源
切换docker的镜像源到阿里云1、注册个帐号https://dev.aliyun.com/search.html阿里云会自动为用户分配一个镜像加速器的地址,登录后进入"管理中心"-->"加速器",里面有分配给你的镜像加速器的地址以及各个环境的使用说明。2、激活docker镜像源的加速器功能在windows命令行(CMD)执行docker-machine ssh [m...
2017-05-11 17:48:39
2359
原创 获取当前页面查询参数
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>获取当前页面查询参数</title></head><body>&
2017-04-21 14:09:28
449
原创 获取当前页的header
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>获取当前页的header</title></head><body >
2017-04-21 14:08:55
1452
原创 在自定义spring aop中使用el获取拦截方法的变量值。
参考自:http://stackoverflow.com/questions/33024977/pass-method-argument-in-aspect-of-custom-annotation经过梳理做成的DEMO,附件有完整示例。package org.demo.el;import org.demo.el.interceptor.CheckEntity;publ...
2017-01-23 17:20:07
1930
原创 启动系统时以普通用户执行rc.local中命令
引用:http://unix.stackexchange.com/questions/210939/what-user-runs-the-commands-defined-in-etc-rc-local Like any init script, the /etc/rc.local script is executed by the root user and you do not ...
2017-01-12 17:21:17
3427
原创 window 环境下配置jmeter的分布式压测
Jmeter集群压测架构图 其中Jmeter Controller是作为master(在jmeter是client端)用于发布压测用例和回收压测结果。而其他的slave(在jmeter是server端)用于分布式压测。配置SLAVE server_port=24001server.rmi.localhostname=10.8.39.120server.rmi.l...
2016-08-03 16:20:03
516
原创 安装配置postman代理
参考地址:https://www.getpostman.com/docs/capture1、安装postman代理,需要使用到python2.7或python3.4的版本;2、安装pip工具,先将该文件下载下来:get-pip.py。然后执行以下命令安装;python get-pip.py3、再通过pip安装postman proxy(window环境下)python -m...
2016-08-01 11:35:46
1600
原创 解决nginx代理spring boot tomcat工程报错
问题场景:在未通过nginx代理情况下所有业务逻辑正常,但是经常nginx代理后某些业务就报空指针错误。报错提示:java.lang.NullPointerException at org.springframework.web.util.WebUtils.isSameOrigin(WebUtils.java:816) at org.springfr...
2016-07-18 16:32:47
425
原创 [MongoDB] Aggregate Example
统计示例:引用自:http://icoon22.tistory.com/319spring-data-mongodb语法:BasicDBObject cmdBody = new BasicDBObject("aggregate", "productHistory");ArrayList<BasicDBObject> pipeline = new ArrayList&...
2016-07-03 13:50:34
181
原创 客户端用https连接服务器的一点心得
转自:http://dannyyuan.blog.51cto.com/212520/118351 项目需要用https与服务器进行连接,获取系统需要的一些配置参数。以前是用http进行连接的,客户端代码比较简单,直接使用URL类进行连接并获取输入流即可。试着在浏览器中输入相应的https连接地址,提示证书确认,确认以后就访问到内容了。 改成https以后碰到了一些问题。原以...
2016-05-11 17:13:38
267
原创 解决PKIX:unable to find valid certification path to requested target 的问题
转自:http://blog.youkuaiyun.com/faye0412/article/details/6883879这两天在twitter服务器上忽然遇到这样的异常:e: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPat...
2016-05-11 17:11:57
262
原创 Spring boot下自定义spring oauth2的授权页面
自定义WhitelabelApprovalEndpoint的/oauth/confirm_access页面内容有两种方法:通过在@Controller注解的类下再添加@SessionAttributes("authorizationRequest")注解.import javax.servlet.http.HttpServletRequest;import org.spri...
2016-05-06 17:48:06
1741
原创 初始化spring-test
在import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.ObjectMapper;import com.github.springtestdbunit.DbUnitTestExecutionListener;import org.junit....
2015-12-30 18:19:57
409
原创 post json
方法一:public static String doPostJson(String interfaceUrl, Object jsonObject) throws Exception { String encoding = "UTF-8"; String contentType = "application/json"; String requestMethod = "P...
2015-12-30 12:35:02
177
原创 javascript中借用别的类的方法
借用别的类的方法/** * Created by Administrator on 2015/12/23. *///====================借用方法===============================function borrowMethods(borrowFrom,addTo){ var from = borrowFrom.protot...
2015-12-23 21:58:34
175
原创 Javascript的类与子类创建
声明父类与子类的示例:/** * Created by Administrator on 2015/12/23. *///声明Rectangle类function Rectangle(w, h) { this.width = w; this.height = h;}Rectangle.prototype.area = function () {...
2015-11-11 20:45:03
336
原创 右建打开文本编辑器
http://zhidao.baidu.com/link?url=JNzgRxFtj8d7dsOuvRzT025b8r0dvRMNtYp_YExQur_hIJz9Iqm175EZC7FviHD85ocLKvIyTgZTG6Gy9sVvwq右建打开文本编辑器 Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell...
2015-09-05 09:01:25
90
原创 安装rredis集群
1、先参考《CentOS下安装rvm、ruby》将ruby安装起来。2、安装ruby redis工具 gem install redis 3、如果出现以下错误,那么确认一下《CentOS下安装rvm、ruby》的第5点是否正常配置ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) E...
2015-07-22 15:48:06
238
原创 CentOS下安装rvm、ruby
1、安装的工具包yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison sqlite-devel iconv-devel 2、安装rvm(...
2015-07-22 09:17:37
379
原创 maven打包成可执行的jar包(package a runnable jar)
第一步:利用maven-jar-plugin生成当前工程的jar,该jar包包含manifest的main-class和class-path参数。<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactI...
2015-04-23 22:01:00
250
原创 spring的rabbitmq配置
1、applicationContext-base.xml <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" ...
2015-03-31 17:57:19
504
原创 pring 4.x 注解方式配置quartz 2.2.x的集群
首先是pom.xml<?xml version="1.0"?><project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" ...
2015-03-26 20:44:38
183
原创 自定义ObjectMapper
d import com.fasterxml.jackson.annotation.JsonInclude.Include;import com.fasterxml.jackson.databind.DeserializationFeature;import com.fasterxml.jackson.databind.MapperFeature;import com.fa...
2015-03-02 16:57:40
1188
原创 JsonObjectMapper
import com.fasterxml.jackson.annotation.JsonInclude.Include;import com.fasterxml.jackson.databind.DeserializationFeature;import com.fasterxml.jackson.databind.MapperFeature;import com.fasterxm...
2015-02-05 10:41:14
371
原创 spring 4.x源码方式配置spring beans
public class ZeusWebApplicationInitializer implements WebApplicationInitializer{ public void onStartup(ServletContext container) { WebApplicationContext rootContext = WebApplication...
2015-01-06 11:58:03
210
原创 Kafka开发时的异常
1、遇到Producer connection to hostname:9092 unsuccessful 14/12/29 11:57:39 INFO utils.VerifiableProperties: Verifying properties14/12/29 11:57:39 INFO utils.VerifiableProperties: Property me...
2014-12-29 12:01:56
395
cygwin redis-5.0.8.zip
2020-04-16
实例化需求 团队如何交付正确的软件 中文完整版
2018-07-30
redis-desktop-manager_0.9.0.17_amd64.deb
2018-06-07
Spring Cloud Contract 学习示例
2017-09-06
hadoop-2.8.0-RC3
2017-09-04
windows64位平台的hadoop2.6插件包(hadoop.dll,winutils.exe)
2017-04-26
JSP & Servlet学习笔记(第2版)
2014-09-21
软件设计师视频教程BT种子
2013-03-29
Java安全性编程实例(徐迎晓)
2011-12-21
Data Mining Practical Machine Learning Tools and Techniques second edition
2011-05-28
Pentaho 3.2 Data Integration- Beginner's Guide code
2010-06-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人