Spring Cloud Zuul Api GateWay Errors***************************APPLICATION FAILED TO START***************************Description:Parameter 0 of method sendResponseFi……继续阅读 » 开心洋葱 9年前 (2018-03-29) 2632浏览 1评论2286个赞
coco vscode 调试错误,没有解决,有解决的朋友可以提供下ar: attachRequest: address: 192.168.1.104 port: 5086ar: attachRequest: connectedar: _termiated: cocos firefox protocol error: received error pac……继续阅读 » 开心洋葱 9年前 (2018-03-23) 1776浏览 0评论2885个赞
ERROR: [5] bootstrap checks failed[1]: initial heap size [31457280] not equal to maximum heap size [1073741824]; this can cause resize pauses and prevents mlockall from locking th……继续阅读 » 开心洋葱 9年前 (2018-03-23) 2334浏览 9评论1551个赞
installation failed with message -99Application Installation FailedInstallation failed with message -99.It is possible that this issue is resolved by uninstalling an existing v……继续阅读 » 开心洋葱 9年前 (2018-03-22) 3676浏览 20评论2570个赞
使用cocos2dx 编译android游戏客户端时,使用android studio 3.0以上就会出现如下错误Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details……继续阅读 » 开心洋葱 9年前 (2018-03-22) 3653浏览 48评论1998个赞
spring-cloud-starter-eureka-server报错E:\Java\jdk1.8.0_144\bin\java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.……继续阅读 » 开心洋葱 9年前 (2018-03-22) 3179浏览 0评论2708个赞
spring cloud starter eureka server报错E:\Java\jdk1.8.0_144\bin\java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.……继续阅读 » 开心洋葱 9年前 (2018-03-22) 3363浏览 0评论1996个赞
HTTP Status 500 – could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statementtype Exception r……继续阅读 » 开心洋葱 9年前 (2018-03-21) 3086浏览 0评论2704个赞
HTTP Status 500 – Unable to instantiate Action, productAction, defined for ‘product_save’ in namespace ‘/’productActiontype Exception reportmessage ……继续阅读 » 开心洋葱 9年前 (2018-03-21) 3563浏览 0评论2902个赞
HTTP Status 500 – Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove ‘readOnly’ marker ……继续阅读 » 开心洋葱 9年前 (2018-03-21) 1868浏览 0评论2788个赞
RocketMQ 管理命令参考大全 sh mqadmin1.1. 控制台使用RocketMQ提供有控制台及一系列控制台命令,用于管理员对主题,集群,broker等信息的管理;l 登录控制台:首先进入RocketMQ工程,进入/RocketMQ/bin在该目录下有个mqadmin脚本l 查看帮助:在mqadmin下可以查看有哪些命令sh ……继续阅读 » 开心洋葱 9年前 (2018-03-10) 2721浏览 0评论2518个赞
单 master 模式也就是只有一个 master 节点,称不上是集群,一旦这个 master 节点宕机,那么整个服务就不可用,适合个人学习使用。多 master 模式多个 master 节点组成集群,单个 master 节点宕机或者重启对应用没有影响。优点:所有模式中性能最高缺点:单个 master 节点宕机期间,未被消费的消息在节点恢复之前……继续阅读 » 开心洋葱 9年前 (2018-02-10) 2058浏览 0评论847个赞
RocketMQ 架构由这张图可以看到有四个集群,分别是 NameServer 集群、Broker 集群、Producer 集群和 Consumer 集群:NameServer: 提供轻量级的服务发现和路由。 每个 NameServer 记录完整的路由信息,提供等效的读写服务,并支持快速存储扩展。Broker: 通过提供轻量级的 Topic 和……继续阅读 » 开心洋葱 9年前 (2018-02-10) 3314浏览 0评论337个赞
RocketMQ 单主部署快速入门 1、clone 源码并用 maven 编译git clone https://github.com/alibaba/RocketMQ.git /opt/RocketMQcd /opt/RocketMQ && mvn -Prelease-all -DskipTests c……继续阅读 » 开心洋葱 9年前 (2018-02-10) 3123浏览 0评论2276个赞
1、总应用主类上上添加@EnableScueduling注解,启动启用定时任务的配置,代码如下......@SpringBootApplication@EnableSchedulingpublic class DemoApplication { public static void main(String[] args) { ……继续阅读 » 开心洋葱 9年前 (2018-01-08) 3560浏览 0评论869个赞
1、idea新创建Spring Boot项目,选择Web类型2、增加HelloController类,代码如下package com.example.demo;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import o……继续阅读 » 开心洋葱 9年前 (2018-01-08) 2446浏览 0评论453个赞
android studio 3.0 出现“应用未安装”情况处理1、清理项目,Cleaned the Project2、删除项目的build文件夹,Deleted the Build directory3、重启android Studio ,Restarted Android Studio4、重新生成项目,Rebuild the ProjectR……继续阅读 » 开心洋葱 9年前 (2017-10-29) 3380浏览 0评论1607个赞
/** 密码发生器 在对银行账户等重要权限设置密码的时候,我们常常遇到这样的烦恼:如果为了好记用生日吧,* 容易被破解,不安全;如果设置不好记的密码,又担心自己也会忘记;如果写在纸上,担心纸张被别人发现或弄丢了…* 这个程序的任务就是把一串拼音字母转换为6位数字(密码)。* 我们可以使用任何好记的拼音串(比如名字,王喜明,就写:wangx……继续阅读 » 水墨上仙 10年前 (2017-07-11) 2274浏览 1701个赞
Java求1000以内的水仙花数打印出所有的 “水仙花数 “,所谓 “水仙花数 “是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个 “水仙花数 “,因为153=1的三次方+5的三次方+3的三次方。public class 水仙花数 { public static v……继续阅读 » 水墨上仙 10年前 (2017-06-09) 3452浏览 2654个赞
打印出所有的 “水仙花数 “,所谓 “水仙花数 “是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个 “水仙花数 “,因为153=1的三次方+5的三次方+3的三次方。public class exp2{ public static void main(Strin……继续阅读 » 水墨上仙 10年前 (2017-05-31) 2389浏览 1475个赞
通过JS代码控制iframe居左或者居右显示,下面的代码控制iframe居右显示,如果希望居左显示,只需要将right改成left即可<!DOCTYPE html><html><body><p>This is some text. This is some text. This is so……继续阅读 » 水墨上仙 10年前 (2017-05-27) 3246浏览 2524个赞
如果希望通过按钮动态修改iframe的高度和宽度,可以参考下面的JS代码<!DOCTYPE html><html><head><script>function changeSize(){document.getElementById("myframe").hei……继续阅读 » 水墨上仙 10年前 (2017-05-27) 2654浏览 1303个赞
Java使用逆波兰表达式算法制作的表达式计算器package com.infogrid.g2b; import java.util.HashMap; import java.util.Map; public class Op { private static final Ma……继续阅读 » 水墨上仙 10年前 (2017-05-27) 2298浏览 2807个赞
下面的JS代码删除了iframe的frameBorder,iframe就没有了明显的边框显示 <!DOCTYPE html><html><head><script>function removeBorder(){document.getElementById("myframe……继续阅读 » 水墨上仙 10年前 (2017-04-20) 1791浏览 1989个赞
Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.js遇到这种问题解决办法,目前还没有解决,知道的小伙伴可以在评论区留言,找到答案后……继续阅读 » 开心洋葱 10年前 (2017-04-14) 3649浏览 1评论2736个赞
判断给定的数是否是回文数Java使用StringBuffer的reverse方法实现回文数是指一个像16461这样“对称”的数,即:将这个数的数字按相反的顺序重新排列后,所得到的数和原来的数一样。import java.util.*; public class PalindromeV2{ public static void main(……继续阅读 » 水墨上仙 10年前 (2017-04-13) 2455浏览 279个赞
java语言将大数组拆分成小数组示例//定义一个长度为X的数组 String[] all = new String[10]; for (int i = 0; i < 10; i++) { all[i]="组"+i; } //定义每个小数组的长度 int SMS_GROUP_NUMER = 3……继续阅读 » 水墨上仙 10年前 (2017-04-01) 3642浏览 265个赞
Android下快速生成get、set、toString等方法,Java语法 有两种方式:方式一:通过快捷键Alt+Insert方式二:Code–>Generate刚开始使用Android Studio时,在创建一个javabean时,很习惯的在JavaBean类中,右键去找生成get,set等选项。但是……继续阅读 » 水墨上仙 10年前 (2017-04-01) 3107浏览 1486个赞
java 随机队列实现的完整方法import java.util.ArrayList;import java.util.Collection;import java.util.Iterator;import java.util.LinkedList;import java.util.NoSuchElementException;impo……继续阅读 » 水墨上仙 10年前 (2017-03-31) 3044浏览 328个赞
java 简单实用的文件下载代码package wan.url.download;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.io.OutputStream;import java.net.Htt……继续阅读 » 水墨上仙 10年前 (2017-03-31) 2565浏览 916个赞
简单的HTTP服务器用Java代码实现import java.net.*;import java.nio.ByteBuffer;import java.nio.channels.*;import java.nio.charset.*;import java.util.concurrent.*;import java.io.*;……继续阅读 » 水墨上仙 10年前 (2017-03-30) 2767浏览 1517个赞
Java代码实现7种将字符串反转的效果import java.util.Stack;public class StringReverse { public static String reverse1(String s) { int length = s.length(); if (length <= 1) retu……继续阅读 » 水墨上仙 10年前 (2017-03-29) 2062浏览 801个赞
sass scss rem计算公式$root-font-size: 20; // 根字体大小@function getRem($val) { @return $val / $root-font-size + rem;}div { width: getRem(40); // width: 2rem; // 1rem =……继续阅读 » 开心洋葱 10年前 (2017-03-29) 3216浏览 0评论1126个赞
html常用的meta整理 <!-- 使用 HTML5 doctype,不区分大小写 --> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa --> <!-- 声明文档使用的字符编码 --> <!-- 优先使用 IE 最新版本和 Chrom……继续阅读 » 开心洋葱 10年前 (2017-03-29) 2916浏览 0评论395个赞
java创建线程池适用于TCP短连接场景import java.util.LinkedList;import java.util.concurrent.atomic.AtomicLong;/** * Copyright ©2017 gonglibin * 守护线程池类接收并执行任务 * @author gonglibin *……继续阅读 » 开心洋葱 10年前 (2017-03-29) 3077浏览 0评论644个赞
获取Ueditor里面的图片列表,地址绝对化/** * 内容中图片地址转成绝对地址 * @param $content * @return mixed */ private function imgUrl($content) { preg_match_all(……继续阅读 » 开心洋葱 10年前 (2017-03-29) 2754浏览 0评论1306个赞
代码从DELPHI语言到JAVA语言[delphi],从DELPHI到JAVA[delphi]1 字符串处理 DELPHI var s :string; s := s + 'a string'; JAVA ……继续阅读 » 水墨上仙 10年前 (2017-03-28) 2579浏览 998个赞
Java学习之Iterator(迭代器)的一般用法 迭代器(Iterator) 迭代器是一种设计模式,它是一个对象,它可以遍历并选择序列中的对象,而开发人员不需要了解该序列的底层结构。迭代器通常被称为“轻量级”对象,因为创建它的代价小。 Java中的Iter……继续阅读 » 开心洋葱 13年前 (2013-12-29) 3768浏览 0评论1522个赞
windows 7 64位配置cocos2d-x开发环境Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch. 在windows7 64位系统下配置coco……继续阅读 » 开心洋葱 13年前 (2013-09-25) 3280浏览 0评论2036个赞
android stuido 出现Connection failed. Please check your network connection and try again 最近项目开发在用Android Studio,不过无奈自动更新检查时总是提示”Connection failed. Please check you……继续阅读 » 开心洋葱 13年前 (2013-09-24) 3607浏览 0评论2738个赞
com.example.mapdemo.BasicMapActivity新建android maps程序出错 出现问题代码: Could not find class 'com.example.mapdemo.BasicMapActivity', referenced from method com.exampl……继续阅读 » 开心洋葱 13年前 (2013-08-29) 3143浏览 0评论1221个赞
this android sdk requires android developer toolkit version 22.0.0 or above的解决办法 找到如下文件 D:\android\sdk\tools\lib\plugin.prop 你的路径可能和我的有所不同 把版本改小一点 # begin plug……继续阅读 » 开心洋葱 13年前 (2013-08-28) 3025浏览 0评论1649个赞
android 谷歌地图api key申请方法 登录到 这个网站: https://code.google.com/apis/console/ 点击同意 进去,点击左侧的 api access 点击右侧的 create android key … 在计……继续阅读 » 开心洋葱 13年前 (2013-08-27) 2231浏览 0评论1498个赞
tomcat catalina.out 报 java.lang.ClassNotFoundException: 4host-manager.org.apache.juli.FileHandler 错误 报告错误如下: Can't load log handler "2l……继续阅读 » 开心洋葱 14年前 (2012-11-29) 2134浏览 0评论690个赞
Eclipse的SVN集成更新地址是: http://subclipse.tigris.org/update_1.6.x http://subclipse.tigris.org/update_1.8.x (支持Subversion 1.7.x) 在选择更新地址时输入后,点击ADD,……继续阅读 » 开心洋葱 14年前 (2012-11-03) 2625浏览 0评论484个赞