- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 CriteriaQuery 用法
@Resource@PersistenceContextprivate EntityManager entityManager;public List<ScoreDetailEntity> getBusInsModels(String userId, Pageable pageable) { CriteriaBuilder criteriaBuilder = enti...
2019-08-13 14:39:44
12318
原创 flume 启动
flume-ng.cmd agent -conf-file ..\conf\flume.conf -name a1 -property flume.root.logger=INFO,console
2018-05-08 09:23:23
2253
原创 wifi adb
usb模式下adb tcpip 5555手机终端/apk susetprop service.adb.tcp.port 5555 stop adbd start adbd adb connect ***.***.***.*adb usb 撤销WIFI ADB
2018-05-08 09:22:19
183
转载 虚拟机上网
有线网络在有线网络的条件下,vmware的安装非常简单,上网方式几乎不用怎么设置(默认NAT模式)如果默认情况下不能上网,则按以下步骤尝试:**************************************************************NAT的DHCP配置:1 将虚拟机的上网方式选为NAT。2 把你的虚拟网卡VMnet8设置为自动获得IP、自动获得DNS服务器,启用。具...
2018-05-08 09:21:05
124
原创 遍历寻找文件
private fun getAllFiles(root: File, endName: Array<String>): List<FileBean> { try { val files = root.listFiles() if (files != null) { for (f in files) { ...
2018-04-10 16:10:10
177
原创 git相关
git使用进阶查看分支git branch -a删除远程分支git push origin --delete remote-branch 删除本地分支git branch -d local-branch切换分支git checkout branch-name创建远程分支git push
2018-01-24 18:55:15
197
原创 内置app
内置app转至元数据结尾转至元数据起始使用PRE_BUILDapp源码放在 package/apps;新建android.mk:LOCAL_PATH:= $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE_TAGS := optionalLOC
2018-01-24 18:44:21
442
原创 blueTooth
/opt/firefly-android5.1/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ BondStateMachine.java/opt/firefly-android5.1/packages/apps/Settings/src/com/android/settings/bluetooth/
2018-01-24 18:42:42
205
原创 appcompat-v7:26 以上版本需要 添加 maven { url "https://maven.google.com" }
appcompat-v7:26 以上版本需要 添加maven { url "https://maven.google.com"}
2018-01-24 18:42:01
1900
原创 crosswalk
在html head中添加此代码调用安卓assets中的字体String assetsFontCSS = "\n";使用Crosswalk作为浏览器内核:(@JavascriptInterface 和原生命名一样 需要重新导入)* 以下方法在crosswalk中无法生效* webView.setPivotX(0);* webView.setPivotY(0);* webVi
2018-01-24 18:41:00
353
原创 数组转String并带分隔符
List list = new List();;String str = String.join(",", list.toArray(new String[list .size()]));
2017-06-02 14:09:11
7205
1
原创 sping 乱码
接口提交汉字 读取乱码:new String(city.getBytes("ISO-8859-1"), "UTF-8");数据库模糊查询:参数必须为_parameter select * from tbl_Users where username like '%${_parameter}%'
2017-01-22 16:56:07
314
原创 linux 文件夹权限
Runtime r = Runtime.getRuntime(); Process p = r.exec("ls -ld " + inputDir); int ret = p.waitFor(); if (ret == 0) { byte[] buf = new byte[1024];
2017-01-17 18:30:25
446
原创 ZXing 粗暴修改扫描范围及截图范围
CameraManager类 getFramingRect()方法相机横竖屏切换 CameraConfigurationManager类中 camera.setDisplayOrientation(90);DecodeHandler 屏蔽像素转换
2017-01-13 16:58:58
893
原创 android AR开源SDK
AndAR :http://www.artoolworks.com/BeyondAR:很容易使用http://beyondar.com/platformDroidAR:http://code.google.com/p/droidar/Mixare:http://www.mixare.org/http://beyondar.com/pl
2017-01-12 10:46:10
1094
原创 RMI 魔法代码
JAVA rmi 调用:1.为rmi调用设置超市时间 默认时间太长影响使用 System.setProperty("java.rmi.dgc.leaseValue", "1000");2.Session类 implements Unreferenced 断连会调用该方法3.extends Remote表示传递的接口4.Naming.bind绑定端口和接口,
2017-01-10 16:58:40
266
原创 eclipse git 对explorer的设置
Team -> Git -> Lable Decorations => Colors and Fonts
2017-01-10 16:55:23
447
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人