- 浏览: 1539395 次
- 性别:
- 来自: 厦门
-
最新评论
-
pgx89112:
大神,请赐我一份这个示例的项目代码吧,万分感谢,1530259 ...
spring的rabbitmq配置 -
string2020:
不使用增强器 怎么弄?
OpenJPA的增强器 -
孟江波:
学习了,楼主,能否提供一份源代码啊,学习一下,十分感谢!!!4 ...
spring的rabbitmq配置 -
eachgray:
...
spring-data-redis配置事务 -
qljoeli:
学习了,楼主,能否提供一份源代码啊,学习一下,十分感谢!!!1 ...
spring的rabbitmq配置
文章列表
CKeditor的取值和赋值
- 博客分类:
- JavaScript
<script type="text/javascript">
var myeditor=CKEDITOR.replace('txtContent', { toolbar: 'Basic' });
</script>
即赋值给一个变量就OK了,然后使用下面的方式读取文本域的值:
myeditor.document.getBody().getText(); //取文本形式的值
myeditor.document.getBody().getHtml(); //取包含html代码的值
如果要赋值那么就是
m ...
本文档基于已经搭建好基础ckeditor的环境上。如:http://www.cnblogs.com/daxin/p/3553865.html
使用leaflet的ckeditor的google map插件;
1、下载、解压插件
下载地址:
http://ckeditor.com/addon/leaflet
下面是leaflet依赖的插件
http://ckeditor.com/addon/widgetselection
http://ckeditor.com/addon/widget
http://ckeditor.com/addon/lineutils
将以上包下载 ...
切换docker的镜像源到阿里云
1、注册个帐号https://dev.aliyun.com/search.html
阿里云会自动为用户分配一个镜像加速器的地址,登录后进入"管理中心"-->"加速器",里面有分配给你的镜像加速器的地址以及各个环境的使用说明。
2、激活docker镜像源的加速器功能
在windows命令行(CMD)执行docker-machine ssh [machine-name]进入VM bash示例:docker-machine ssh defaultsudo vi /var/lib/boot2docker/pr ...
获取当前页面查询参数
- 博客分类:
- 网页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>获取当前页面查询参数</title>
</head>
<body>
<script type="text/javascript">
function getValue(name) {
var reg = new RegExp(&quo ...
获取当前页的header
- 博客分类:
- 网页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>获取当前页的header</title>
</head>
<body >
<script type="application/javascript">
<!--
var x = window.XMLHttpRequest ? new ...
参考自:http://stackoverflow.com/questions/33024977/pass-method-argument-in-aspect-of-custom-annotation
经过梳理做成的DEMO,附件有完整示例。
package org.demo.el;
import org.demo.el.interceptor.CheckEntity;
public class Company {
private Long id;
private String name;
private Employee managingDire ...
启动系统时以普通用户执行rc.local中命令
- 博客分类:
- Linux
引用: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 need to prepend either su or sudo to the commands/programs that need to run as root.You may still nee ...
window 环境下配置jmeter的分布式压测
- 博客分类:
- 压力测试
Jmeter集群压测架构图
其中Jmeter Controller是作为master(在jmeter是client端)用于发布压测用例和回收压测结果。
而其他的slave(在jmeter是server端)用于分布式压测。
配置SLAVE
server_port=24001
server.rmi.localhostname=10.8.39.120
server.rmi.localport=26001
启动SLAVE 命令
%JMETER_HOME%\bin\jmeter-server.bat -Djava.rmi.server.hostname=10.8.39 ...
安装配置postman代理
- 博客分类:
- postman
参考地址:https://www.getpostman.com/docs/capture
1、安装postman代理,需要使用到python2.7或python3.4的版本;
2、安装pip工具,先将该文件下载下来:get-pip.py。然后执行以下命令安装;
python get-pip.py
3、再通过pip安装postman proxy(window环境下)
python -m pip install PostmanProxy
问题场景:在未通过nginx代理情况下所有业务逻辑正常,但是经常nginx代理后某些业务就报空指针错误。
报错提示:
java.lang.NullPointerException
at org.springframework.web.util.WebUtils.isSameOrigin(WebUtils.java:816)
at org.springframework.web.cors.DefaultCorsProcessor.processRequest(DefaultCorsProcessor.java:76)
at org.sp ...
统计示例:
引用自:http://icoon22.tistory.com/319
spring-data-mongodb语法:
BasicDBObject cmdBody = new BasicDBObject("aggregate", "productHistory");
ArrayList<BasicDBObject> pipeline = new ArrayList<BasicDBObject>();
String fmt = "yyyyMMddHHmmss";
Date fromDat ...
转自:http://dannyyuan.blog.51cto.com/212520/118351
项目需要用https与服务器进行连接,获取系统需要的一些配置参数。以前是用http进行连接的,客户端代码比较简单,直接使用URL类进行连接并获取输入流即可。试着在浏览器中输入相应的https连接地址,提示证书确认,确认以后就访问到内容了。
改成https以后碰到了一些问题。原以为Java可能已经封装好了,所以把直接把原来的http连接改成https,结果抛出异常:java.lang.UnsupportedClassVersionError: test/url/URLTest ...
转自:http://blog.csdn.net/faye0412/article/details/6883879
这两天在twitter服务器上忽然遇到这样的异常:
e: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path ...
自定义WhitelabelApprovalEndpoint的/oauth/confirm_access页面内容有两种方法:
通过在@Controller注解的类下再添加@SessionAttributes("authorizationRequest")注解.
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestM ...
在
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.springtestdbunit.DbUnitTestExecutionListener;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra ...