`
01jiangwei01
  • 浏览: 531988 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
如何获取saiku账号及license 实在书写不方便,这里采用引用的方式。如果需要可以点击下面的链接进行参考。 参考网站:https://blog.csdn.net/xubaoyong/article/details/106521052

AESUtils

    博客分类:
  • java
import java.io.UnsupportedEncodingException; import java.security.Key; import java.security.NoSuchAlgorithmException; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.spec.SecretKeySpec; public class AESUtils { private static ...
<!DOCTYPE html> <html> <head>     <meta charset="utf-8">     <meta name="viewport"           content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">     <title>iScroll-5 DEMO: Pull to Re ...

java ftp上传文件

    博客分类:
  • java
工具类: import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPReply; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import ja ...

redis应用方法

    博客分类:
  • java
1:统计一段时间内,某一时间触发次数 引用   1.1先写值 stringRedisTemplate.opsForZSet().add(key, score, value); stringRedisTemplate.expire(key, 120, TimeUnit.MINUTES); //不要忘记设置有效时长 stringRedisTemplate.removeRange(key, 0, -6); redisTemplate.opsForZSet().rem ...

风控系统1

    博客分类:
  • java
...
 建表,注意数据库表索引必须是MyISAM   CREATE TABLE address ( address CHAR(80) NOT NULL, address_loc POINT NOT NULL, PRIMARY KEY(address) )ENGINE=MyISAM;  空间索引:   ALTER TABLE address ADD SPATIAL INDEX(address_loc);  插入数据:(注:此处Point(纬度,经度) 标准写法)    INSERT INTO address VALUES('Fo ...
import java.io.File; import java.io.IOException; import java.util.*; import org.apache.commons.collections.map.HashedMap; import org.apache.commons.lang3.StringUtils; import org.apache.http.*; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.CookieStor ...
初装CentOS7,默认网卡没有开启。   cd /etc/sysconfig/network-scripts/ ls 查看一下ifcfg-eno后面对应的数字是什么,下面以eno32为例 vi  ifcfg-eno32 编辑下   ONBOOT="yes"  开启自动启用网络连接 :wq 保存退出 service network restart   重启网络 应该就可以看到有线网卡了!
git add . git commit: git commit -a -m "edit pom 2" git push:git push origin HEAD:refs/for/branch(分支名称)   git 回退: git reset --hard 5956236b65a06414a543d878fedacc223d838d6e git reset --soft 5956236b65a06414a543d878fedacc223d838d6e
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=" ...
命令:wmic process get name,executablepath,processid,parentprocessid  其中parentprocessid可以查看父进程ID wmic process where name="java.exe"  get /format:value netstat -aon|findstr "8081"

Socket 实例

SocketClient 客户端代码 import java.io.*; import java.net.Socket; import java.net.UnknownHostException; public class SocketClient { public static void main(String[] args) { Socket socket = null; try { socket = new Socket("127.0.0.1", 9991); ...

scala 基础知识

scala如何判断类型及强制类型转换 if(p.getClass == classOf[Employee]){ } if(p.isInstanceOf[Employee]){ var newP = listener.asInstanceOf[Employee] }   for循环  scala中没有与java一样的for循环 for(i <- 表达式) 实现i遍历 表达式里的所有元素。表达式可以是Range类对象或者是集合类。遍历字符串使用的是until而不是to. val s= 'hello'; var sum = 0; for(i ...

ubuntu国内镜像

 
http://mirrors.163.com/ubuntu-releases/
Global site tag (gtag.js) - Google Analytics