- 博客(57)
- 资源 (3)
- 收藏
- 关注
原创 robust
classpath 'com.meituan.robust:gradle-plugin:0.4.90'classpath 'com.meituan.robust:auto-patch-plugin:0.4.90'implementation 'com.meituan.robust:robust:0.4.90'//制作补丁时将这个打开,auto-patch-plugin紧跟着com.a...
2019-07-17 17:18:31
694
转载 springboot jar linux部署
命令 nohup java -jar bbx-1.0.0.jar >log.file 2>&1 &执行nohup命令的时候,经常会出现下面这种没有写入权限的错误。nohup: ignoring input and appending output to `nohup.out'nohup: failed to run command `/etc/nginx_ch...
2019-05-30 16:22:42
263
原创 h5
ios 中时间格式转换出错h5页面在ios中的时间、日期乱码问题,是因为数据库传给前端时,中间含有T和-,而ios不支持含有特殊符号的T和-,需要把T替换为空格,将-替换为/,然后自己再拼成要展示的格式情况 if (str != undefined && str != "" && str != null) { if (str.toStrin...
2018-12-18 13:16:29
230
原创 linux
安装的NodeJS获取资源的NodeJS获取资源的NodeJS#4.x版curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - #5.x的curl --silent --location https://rpm.nodesource.com/setup_5.x | bash - #0.10...
2018-12-12 11:37:34
125
转载 node vue
Jinkey原创感谢 showonne、yubang 技术指导Demo 地址:http://demo.jinkey.io/vue2源码:https://github.com/Jinkeycode/vue2-exampleVue2 教程:https://www.runoob.com/vue2/vue-tutorial.html什么是 VueVue 是一个前端框架,特点是数据绑定...
2018-10-19 11:29:34
251
原创 nginx 其他端口代理到80端口
server { listen 80; server_name www.baidu.com; location / { proxy_pass http://139.196.187.111:8080; }}server下的结点:listen:监听80端口server_name...
2018-09-26 11:18:39
8916
原创 阿里云mysql外网访问
添加需要监听的端口/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT关闭防火墙service iptables stop
2018-09-04 12:34:05
720
原创 三星应用市场 提交不了
注册的二进制 不符合 GALAXY Specials 的类别条件。 只有当至少有一个二进制支持 GALAXY Specials 时,才能选择 GALAXY Specials 类别。 您可以转到“二进制”>“高级模式”>“二进制详细信息”来检查支持的 GALAXY Specials 选项。三星开发者发布时提示的信息添加三星的权限<!--sumsung权限--><uses...
2018-03-22 16:39:26
1343
原创 遇到的问题
RecyclerView 想自动滚动到某个postion上 scrollToPosition() 和 smoothScrollToPosition() 可能无效 因为如果想要滚动到的位置已经在屏幕上可见则不发生滚动LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recycler_view.getLayoutM
2017-03-06 19:42:37
270
原创 RatingBar 自定义 出现拉伸 重影
item name="android:maxHeight">28pxitem>item name="android:minHeight">30pxitem>设置真实的px 必须在xhdpi xxhdpi 等文件下做图片适配
2016-11-09 10:28:39
1024
原创 android ScrollView 嵌套RecyclerView 快速滑动粘黏问题
android.support.v7.widget.RecyclerView android:id="@+id/v_logistics_list" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/wh
2016-10-09 15:29:08
1181
原创 AlertDialog
AlertDialog alertDialog = new AlertDialog.Builder(getContext()).create();View view = LayoutInflater.from(getContext()).inflate(R.layout.version_update, null);alertDialog.setView(view);alertDialog.s
2016-09-23 17:20:49
278
原创 git
安装git 软件create new repository 选择android studio项目作为仓库关联变化注册仓库-commit-push输入帐号 密码上传更改git用户密码在控制面板 用户账户中 凭据管理里找到git管理...
2016-07-24 21:34:56
263
原创 eclipse tomcat7 maven3 自动部署到tomcat
pom.xml中添加 igobuyorg.apache.tomcat.maventomcat7-maven-plugin2.2http://xxx:8081/manager/text 必须是text 不能是html 11111111igobuy.deploy/igobuytomcat-deploydeploydeploy
2016-06-25 15:58:01
512
原创 android stuidio 代理设置
添加一下网址http://mirrors.neusoft.edu.cn/android/repository/addon.xml
2016-04-15 15:01:55
595
原创 eclipse启动tomcat 卡住preparing launch delegate
原因是服务器端口 http端口和ajp端口占用 可能是tomcat非正常关闭导致 更换其他端口重启启动就行了
2016-04-05 10:06:49
15148
原创 android 常用方法
package com.sunkiha.mydemo.mydemo.comm.util;import android.content.Context;import android.content.pm.ApplicationInfo;import android.content.pm.PackageInfo;import android.content.res.Resources;i...
2016-02-17 09:36:22
415
原创 android github地址
仿iOS的PickerView控件,有时间选择和选项选择并支持一二三级联动效果https://github.com/saiwu-bigkoo/Android-PickerView
2016-01-21 14:37:41
487
原创 数据库mysql乱码问题
插入乱码:后台不乱码 插入到数据库乱码那是应为mysql 默认字符集是latin1 mysql> show variables like 'character%'; //查询当前mysql数据库的所有属性的字符编码修改mysql默认字符集【client】下面,加上default-character-set=utf8,或者character_set_client=utf8【
2015-05-30 10:50:31
369
原创 eclipse 插件
javaee插件 http://download.eclipse.org/releases/ganymede/http://download.eclipse.org/mpc/indigo/ http://plugins.genymotion.com/eclipse/ BA%A6%E5%A4%A7%E5%8E%A6&sensor=falsehttp://eclipse-color-
2015-05-20 18:59:31
400
原创 android 理论知识
屏幕的密度(density) dp*ppi/160 = px 即float desity= mContext.getResources().getDisplayMetrics().density; dp=px / scale + 0.5;float desityDpi= mContext.getResources().getDisplayMetrics().dens
2015-03-27 10:00:19
1165
原创 fragment 横屏切换 view 重叠
主要是Bundle savedInstanceState 再次加载造成的,在mainActivity 启动模式android:launchMode="singleTask" 实现单例模式
2015-03-23 09:39:17
650
原创 中文转拼音
public class PinyinComparator implements Comparator { public int compare(String o1, String o2) { for (int i = 0; i int codePoint1 = o1.charAt(i); int codePoint2 =
2015-03-16 13:37:35
528
原创 listview设置单元格选择是背景色为透明,这样选择时就不现实黄色
category.setSelector(new ColorDrawable(Color.TRANSPARENT));
2014-11-30 16:24:21
931
原创 android 泛型 baseservice
public static void main(String[] args) { List li=new ArrayList(); Map m=new HashMap(); m.put("id", "ad"); li.add(m); m=new HashMap(); m.put("id", "ad"); li.add(
2014-11-19 15:39:29
669
原创 fastjson
List li=new ArrayList(); Map m=new HashMap(); m.put("id", "ad"); li.add(m); m=new HashMap(); m.put("id", "ad"); li.add(m); String a=JSON.toJSONString(li);
2014-11-18 15:36:38
338
原创 开源框架介绍
jsoupjsoup 是一款Java 的HTML解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于jQuery的操作方法来取出和操作数据。
2014-11-18 13:17:21
750
原创 基于springmvc的自定义错误类型
public class LoginHandlerExceptionResolver implements HandlerExceptionResolver { @Override public ModelAndView resolveException(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2,
2014-11-04 14:34:39
645
原创 读取db.properties等properties文件
db.propertiesa Locale zhLoc = new Locale("zh","CN"); //表示中国地区 //找到属性文件 ResourceBundle zhrb = ResourceBundle.getBundle("db", zhLoc); path=zhrb.getString("viewImgUrl");
2014-10-29 10:29:16
802
原创 notifyDataSetChanged
notifyDataSetChanged方法通过一个外部的方法控制如果适配器的内容改变时需要强制调用getView来刷新每个Item的内容。public void notifyDataSetChanged ()该方法内部实现了在每个观察者上面调用onChanged事件。每当发现数据集有改变的情况,或者读取到数据的新状态时,就会调用此方法。public void notify
2014-10-26 15:22:18
781
原创 ListView 滚动背景变黑
ListView是常用的显示控件,默认背景是和系统窗口一样的透明色,如果给ListView加上背景图片,或者背景颜色时,滚动时listView会黑掉,原因是,滚动时,列表里面的view重绘时,用的依旧是系统默认的透明色,颜色值为#FF191919,要改变这种情况,只需要调用listView的setCacheColorHint(0),颜色值设置为0或者xml文件中listVi
2014-10-26 15:20:45
389
原创 listview setOnItemClickListener 点击事件失效的解决方法
android:descendantFocusability="blocksDescendants"
2014-10-24 16:47:06
551
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人