Haijie Li's Blog


  • Home

  • About

  • Tags

  • Archives

  • Search

在PHP7中如何添加扩展redis

Posted on 2019-08-22 | In PHP7
| Words count in article: 171 | Reading time ≈ 1

在php.ini文件搜索extension_dir来设置ext文件夹所在位置

需要把前面的;注释符去掉,如下

1
2
3
4
5
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
;extension_dir = "./"
; On windows:
extension_dir = "D:\php7\ext"

此处的设置是让php开启扩展功能,只要用到扩展功能,都需要开启此功能。

Read more »

安卓与H5的通讯之jsbridge

Posted on 2019-08-19 | In 安卓
| Words count in article: 580 | Reading time ≈ 2

背景

由于H5具有跨平台,热更新等优势,所以在app开发当中,我们经常会遇到js与java进行交互的情况。JsBridge中提供了WebViewJavascriptBridge来实现在安卓中js与java的相互调用。

依赖集成

在项目build.gradle加入

1
2
3
4
repositories {
// ...
maven { url "https://jitpack.io" }
}
Read more »

elasticsearch如何使用英文逗号作为分词符

Posted on 2019-08-16 | In elasticsearch
| Words count in article: 88 | Reading time ≈ 1

setting中加入的设置

1
2
3
4
5
6
7
8
9
10
"settings": {
"analysis": {
"analyzer": {
"comma": {
"type": "pattern",
"pattern":","
}
}
}
}
Read more »

springboot同时集成es与redis报错解决方案

Posted on 2019-08-16 | In springboot
| Words count in article: 325 | Reading time ≈ 1

由于毕业设计项目的需要,在spingboot集成了es前提是引入了spring-data-elasticsearch包,在使用maven打包项目时出现了如下错误

1
Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method 'esTransportClientInit' threw exception; nested exception is java.lang.IllegalStateException
Read more »

在安卓上实现svga图层替换

Posted on 2019-08-15
| Words count in article: 225 | Reading time ≈ 1

找出需要替换的图层的key

解析地址
图片加载失败
可以看到,我需要替换的图层的key是liwu,这个key在后面将会使用到

Read more »

安卓如何读取资源文件

Posted on 2019-08-14 | In 安卓
| Words count in article: 155 | Reading time ≈ 1

背景

对于不会修改的数据文件,我们放在资源文件夹下最合适的。但是在安卓下我们应该如何读取这些资源文件呢?

Read more »
123

Haijie Li

26 posts
11 categories
19 tags
RSS
0%
© 2019 — 2020 Haijie Li 粤ICP备19113758号
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4